]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
0053235: Using of 'Remove tiny edges' in MG-CADSurf produces free nodes.
authoreap <eap@opencascade.com>
Thu, 25 Aug 2016 13:56:59 +0000 (16:56 +0300)
committereap <eap@opencascade.com>
Thu, 25 Aug 2016 13:56:59 +0000 (16:56 +0300)
src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx

index ca54cf399db7228228ada1e08581c449c731623d..263490944ae5a33a6d703bc4b5175710e53129bc 100644 (file)
@@ -2800,6 +2800,12 @@ bool BLSURFPlugin_BLSURF::compute(SMESH_Mesh&         aMesh,
     }
   }
 
+  // Remove free nodes that can appear e.g. if "remove tiny edges"(IPAL53235)
+  for(int iv=1;iv<=nv;iv++)
+    if ( tags[iv] && nodes[iv] && nodes[iv]->NbInverseElements() == 0 )
+      meshDS->RemoveFreeNode( nodes[iv], 0, /*fromGroups=*/false );
+
+
   // SetIsAlwaysComputed( true ) to sub-meshes of EDGEs w/o mesh
   for (int i = 1; i <= emap.Extent(); i++)
     if ( SMESH_subMesh* sm = aMesh.GetSubMeshContaining( emap( i )))