Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Fixes to several filters as reported by users #699

Conversation

imikejackson
Copy link
Contributor

WriteSTLFile
SampleTriangleGeometryOntoRegularGrid.

Comment on lines +321 to +329
// float inverseRate = static_cast<float>(diff) / static_cast<float>(m_ProgressCounter - m_LastProgressInt);
// auto remainMillis = std::chrono::milliseconds(static_cast<int64>(inverseRate * (totalFeatures - m_ProgressCounter)));
// auto secs = std::chrono::duration_cast<std::chrono::seconds>(remainMillis);
// remainMillis -= std::chrono::duration_cast<std::chrono::milliseconds>(secs);
// auto mins = std::chrono::duration_cast<std::chrono::minutes>(secs);
// secs -= std::chrono::duration_cast<std::chrono::seconds>(mins);
// auto hour = std::chrono::duration_cast<std::chrono::hours>(mins);
// mins -= std::chrono::duration_cast<std::chrono::minutes>(hour);
// progMessage += fmt::format(" || Est. Time Remain: {} hours {} minutes {} seconds", hour.count(), mins.count(), secs.count());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// float inverseRate = static_cast<float>(diff) / static_cast<float>(m_ProgressCounter - m_LastProgressInt);
// auto remainMillis = std::chrono::milliseconds(static_cast<int64>(inverseRate * (totalFeatures - m_ProgressCounter)));
// auto secs = std::chrono::duration_cast<std::chrono::seconds>(remainMillis);
// remainMillis -= std::chrono::duration_cast<std::chrono::milliseconds>(secs);
// auto mins = std::chrono::duration_cast<std::chrono::minutes>(secs);
// secs -= std::chrono::duration_cast<std::chrono::seconds>(mins);
// auto hour = std::chrono::duration_cast<std::chrono::hours>(mins);
// mins -= std::chrono::duration_cast<std::chrono::minutes>(hour);
// progMessage += fmt::format(" || Est. Time Remain: {} hours {} minutes {} seconds", hour.count(), mins.count(), secs.count());

m_InitialTime = std::chrono::steady_clock::now();
m_LastProgressInt = m_ProgressCounter;
m_LastUpdateTime = std::chrono::steady_clock::now();
// m_LastProgressInt = m_ProgressCounter;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// m_LastProgressInt = m_ProgressCounter;

Comment on lines +583 to +584
// std::array<Point3D<T>, 3> coords;
// triangleGeom.getFaceCoordinates(faceIds[face], coords);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// std::array<Point3D<T>, 3> coords;
// triangleGeom.getFaceCoordinates(faceIds[face], coords);

@imikejackson
Copy link
Contributor Author

Closing as these changes are going to be on another PR or 2.

@imikejackson imikejackson deleted the feature/udri_misc_fixes branch September 26, 2023 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants