skip vertices "interior" to a sequence of on the plane vertices

This commit is contained in:
Sébastien Loriot 2025-12-10 16:19:12 +01:00
parent 859633279f
commit 20d2ce53fc
1 changed files with 5 additions and 0 deletions

View File

@ -431,6 +431,11 @@ void refine_with_plane(PolygonMesh& pm,
Oriented_side prev_ori = get(vertex_os, source(h, pm)),
next_ori = get(vertex_os, target(next(h, pm), pm));
// skip vertices enclosed by vertices on the plane
if (prev_ori==ON_ORIENTED_BOUNDARY && next_ori==ON_ORIENTED_BOUNDARY)
continue;
splitted_faces[face(h, pm)].push_back(h);
// we insert tangency point twice as the vertex might be use twice to split a face
if (prev_ori==ON_ORIENTED_BOUNDARY || next_ori==ON_ORIENTED_BOUNDARY || prev_ori==next_ori)