mirror of https://github.com/CGAL/cgal
setting status of edges that will disappear is cheaper than checking status
This commit is contained in:
parent
5b3356dbc6
commit
a52afd8800
|
|
@ -1699,10 +1699,9 @@ private:
|
|||
{
|
||||
set_status(hf, MESH_BORDER); //only 1 or 2 of the listed halfedges
|
||||
//will survive face removal, but status will be correct
|
||||
|
||||
halfedge_descriptor hfo = opposite(hf, mesh_);
|
||||
if(status(hfo) != MESH_BORDER)
|
||||
set_status(hfo, PATCH_BORDER);
|
||||
set_status(opposite(hf, mesh_), PATCH_BORDER); //idem
|
||||
//some of them will not survive but setting status
|
||||
//is cheaper then checking which should be set
|
||||
}
|
||||
CGAL::Euler::remove_face(h, mesh_);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue