From fbe9db9731966345525fd03e7d6edccacb075949 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 9 Sep 2016 14:57:36 +0300 Subject: [PATCH] Fix regression of SALOME_TESTS/Grids/smesh/3D_mesh_Projection_00/A5 --- src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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++) -- 2.39.2