Skip to content

Conversation

@MaelRL
Copy link
Member

@MaelRL MaelRL commented Jan 12, 2026

Summary of Changes

A few improvements for the experimental polygon mesh snapping functions of PMP.

Release Management

  • Affected package(s): PMP
  • Feature/Small Feature (if any): n/a
  • License and copyright ownership: no change

The point is that we can then either pass a tolerance map,
or a constant fixed value.
This is because if meshes are different, the target edge is fixed.
But if we are self-snapping, the edge might move because one of
its extremity might itself have been a vertex involved in vertex-edge
snapping.
otherwise the tolerance (esp. the automatic one using 0.9 * min_inc_edge_l)
can grow too large and allow snapping to a neighbor-of-neighbor edge,
which obviously we need to avoid.

vertices_to_snap.emplace_back(h, tolerance);

// take the min tolerance for all vertices with at the same position
Copy link
Contributor

Choose a reason for hiding this comment

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

with -> which are? or remove the word at?

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks! :)

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