added clearSelection flag (default true) to avoid vertex selection clearing
This commit is contained in:
parent
601265e961
commit
b01f140e50
|
@ -1014,10 +1014,10 @@ public:
|
||||||
* e.g. the vertices with a non 2-manif. neighbourhood but that do not belong to not 2-manif edges.
|
* e.g. the vertices with a non 2-manif. neighbourhood but that do not belong to not 2-manif edges.
|
||||||
* typical situation two cones connected by one vertex.
|
* typical situation two cones connected by one vertex.
|
||||||
*/
|
*/
|
||||||
static int CountNonManifoldVertexFF( MeshType & m, bool selectVert = true )
|
static int CountNonManifoldVertexFF( MeshType & m, bool selectVert = true, bool clearSelection = true)
|
||||||
{
|
{
|
||||||
RequireFFAdjacency(m);
|
RequireFFAdjacency(m);
|
||||||
if(selectVert) UpdateSelection<MeshType>::VertexClear(m);
|
if(selectVert && clearSelection) UpdateSelection<MeshType>::VertexClear(m);
|
||||||
|
|
||||||
int nonManifoldCnt=0;
|
int nonManifoldCnt=0;
|
||||||
SimpleTempData<typename MeshType::VertContainer, int > TD(m.vert,0);
|
SimpleTempData<typename MeshType::VertContainer, int > TD(m.vert,0);
|
||||||
|
|
Loading…
Reference in New Issue