Skip to content

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

afabri
Copy link
Member

@afabri afabri commented May 14, 2025

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 for CGAL::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

  • Affected package(s): PMP
  • License and copyright ownership: unchanged

@afabri afabri requested a review from sloriot May 14, 2025 14:08
@afabri afabri assigned afabri and unassigned afabri May 14, 2025
@afabri afabri added this to the 6.1-beta milestone May 14, 2025
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"
Copy link
Member Author

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.

Copy link
Member

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants