-
Notifications
You must be signed in to change notification settings - Fork 1.5k
PMP: Make stitch_borders() deterministic #8890
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
base: master
Are you sure you want to change the base?
Conversation
std::cout << hedges_to_stitch.size() " halfedge pairs to stitch on border containing:\n" | ||
<< edge(h, pmesh) << "\n\t" << source(h, pmesh) << "\t(" << get(vpm, source(h, pmesh)) << ")" | ||
<< "\n\t" << target(h, pmesh) << "\t(" << get(vpm, target(h, pmesh)) << ")" << std::endl; | ||
std::cout << hedges_to_stitch.size() << " halfedge pairs to stitch on border containing:\n" |
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.
@sloriot can you confirm that bh
is the right object here.
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 remember but from what I read bh
is not in the range. Should be *hedges_to_stitch.begin()
for example.
Co-authored-by: Laurent Rineau <Laurent.Rineau@cgal.org>
Summary of Changes
This PR makes the function
CGAL::Polygon_mesh_processing::stitch_borders()
deterministic.It was already deterministic for
CGAL::Surface_mesh
but not forCGAL::Polyhedron_3
as it compared pointers.In case we do not want to change the code, we can also document the existing named parameter
halfedges_keeper
.Release Management