added clearSelection flag (default true) to avoid vertex selection clearing

This commit is contained in:
T.Alderighi 2020-01-15 19:08:16 +01:00
parent 601265e961
commit b01f140e50
1 changed files with 2 additions and 2 deletions

View File

@ -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);