Skip to content

Commit 2d27957

Browse files
janetournoissloriot
authored andcommitted
fix the case where new_location stands on an already existing vertex
1 parent 2a3adbe commit 2d27957

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Mesh_3/include/CGAL/Mesh_3/C3T3_helpers.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3208,6 +3208,9 @@ move_point_topo_change(const Vertex_handle& old_vertex,
32083208
reset_circumcenter_cache(insertion_conflict_cells);
32093209
reset_sliver_cache(insertion_conflict_cells);
32103210

3211+
if(insertion_conflict_boundary.empty())
3212+
return old_vertex; // new_location is a vertex already
3213+
32113214
Vertex_handle nv = move_point_topo_change_conflict_zone_known(old_vertex, new_position,
32123215
insertion_conflict_boundary[0],
32133216
insertion_conflict_cells.begin(),

0 commit comments

Comments
 (0)