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
|
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_);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue