setting status of edges that will disappear is cheaper than checking status

This commit is contained in:
Jane Tournois 2025-04-14 11:30:44 +02:00
parent 5b3356dbc6
commit a52afd8800
1 changed files with 3 additions and 4 deletions

View File

@ -1699,10 +1699,9 @@ private:
{ {
set_status(hf, MESH_BORDER); //only 1 or 2 of the listed halfedges set_status(hf, MESH_BORDER); //only 1 or 2 of the listed halfedges
//will survive face removal, but status will be correct //will survive face removal, but status will be correct
set_status(opposite(hf, mesh_), PATCH_BORDER); //idem
halfedge_descriptor hfo = opposite(hf, mesh_); //some of them will not survive but setting status
if(status(hfo) != MESH_BORDER) //is cheaper then checking which should be set
set_status(hfo, PATCH_BORDER);
} }
CGAL::Euler::remove_face(h, mesh_); CGAL::Euler::remove_face(h, mesh_);
} }