From: eap Date: Fri, 9 Sep 2016 11:57:36 +0000 (+0300) Subject: Fix regression of SALOME_TESTS/Grids/smesh/3D_mesh_Projection_00/A5 X-Git-Tag: V8_1_0rc1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fbe9db9731966345525fd03e7d6edccacb075949;p=plugins%2Fblsurfplugin.git Fix regression of SALOME_TESTS/Grids/smesh/3D_mesh_Projection_00/A5 --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 4fa2bec..73ac532 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -2764,6 +2764,13 @@ bool BLSURFPlugin_BLSURF::compute(SMESH_Mesh& aMesh, /* 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 ); @@ -2808,11 +2815,6 @@ 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 ( 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++)