/* release the mesh object, the rest is released by cleaner */
cadsurf_regain_mesh(css, msh);
+
+ // Remove free nodes that can appear e.g. if "remove tiny edges"(IPAL53235)
+ for(int iv=1;iv<=nv;iv++)
+ if ( nodes[iv] && nodes[iv]->NbInverseElements() == 0 )
+ meshDS->RemoveFreeNode( nodes[iv], 0, /*fromGroups=*/false );
+
+
if ( needMerge ) // sew mesh computed by MG-CADSurf with pre-existing mesh
{
SMESH_MeshEditor editor( &aMesh );
}
}
- // Remove free nodes that can appear e.g. if "remove tiny edges"(IPAL53235)
- for(int iv=1;iv<=nv;iv++)
- if ( 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++)