-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Make triangulate_faces deterministic #8129
Make triangulate_faces deterministic #8129
Conversation
|
||
halfedge_descriptor res = boost::graph_traits<PolygonMesh>::null_halfedge(); | ||
|
||
if (p1p3!=p0p2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should have a predicate. Because here we compare computed values, without an exact kernel.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do you want to call it? Comparison_result fct(const Point_& p0,..... p3)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also the code might profit from computing some differences only once.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think there is any need to use an exact predicate here. I don't think we could select an invalid diagonal.
Successfully tested in 6.0-Ic-224 |
Triangulate quads the same way