Skip to content

Commit

Permalink
remove border degenerate faces, fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
janetournois committed Aug 26, 2024
1 parent c7ce0e4 commit eabb4dc
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1710,7 +1710,7 @@ namespace internal {
halfedge_descriptor h = *(degenerate_faces.begin());
degenerate_faces.erase(degenerate_faces.begin());

if(is_border(h, mesh_))
if(is_border(opposite(h, mesh_), mesh_))
{
CGAL::Euler::remove_face(h, mesh_);
continue;
Expand All @@ -1721,8 +1721,11 @@ namespace internal {
{
halfedge_descriptor hfo = opposite(hf, mesh_);

if(is_border(hfo, mesh_)) continue;

if(is_border(hfo, mesh_))
{
CGAL::Euler::remove_face(h, mesh_);
break;
}
vertex_descriptor vc = target(hf, mesh_);
vertex_descriptor va = target(next(hf, mesh_), mesh_);
vertex_descriptor vb = target(next(next(hf, mesh_), mesh_), mesh_);
Expand Down

0 comments on commit eabb4dc

Please sign in to comment.