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

Add ignored failing unit test for triangulation bug #430 #842

Merged
merged 1 commit into from
Jul 18, 2022
Merged

Add ignored failing unit test for triangulation bug #430 #842

merged 1 commit into from
Jul 18, 2022

Conversation

willhansen
Copy link
Contributor

#430

Also fix gitignore not ignoring .idea/ directory

Copy link
Owner

@hannobraun hannobraun left a comment

Choose a reason for hiding this comment

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

Thank you, @willhansen! I like it, especially the ASCII art drawing 😄

I left one comment with a question.

fn triangulate(face: Face) -> anyhow::Result<Mesh<Point<3>>> {
let tolerance = Tolerance::from_scalar(Scalar::ONE)?;
let tolerance = Tolerance::from_scalar(Scalar::ONE * 0.0001)?;
Copy link
Owner

Choose a reason for hiding this comment

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

Was this change necessary in some way? The tests only use polygons as input for the triangulation, no circles or anything else that would need to be approximated. The tolerance (which is used to determine the precision of the approximation) should make no difference.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not required. I didn't realize it was only used for curves.

Copy link
Owner

Choose a reason for hiding this comment

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

Thanks for clarifying! Probably worth adding a comment, next time I'm touching that piece of code.

#430

Fix gitignore not ignoring .idea/ directory
@hannobraun hannobraun merged commit ff55533 into hannobraun:main Jul 18, 2022
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