]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
0021988: EDF 2484 SMESH : NETGEN and GDHS3D/BLSURF mixed meshes V6_6_BR V6_6_0 V6_6_0rc1 V6_6_0rc2
authoreap <eap@opencascade.com>
Mon, 19 Nov 2012 15:42:46 +0000 (15:42 +0000)
committereap <eap@opencascade.com>
Mon, 19 Nov 2012 15:42:46 +0000 (15:42 +0000)
  Clear pre-existing nodes on VERTEX'es

src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx

index ad036b8df2a65ceec52f74cc065321ef01c144bb..01cc508e2323f2e8215d88c1dd5fcce80e9d0a5a 100644 (file)
@@ -2000,9 +2000,12 @@ bool BLSURFPlugin_BLSURF::compute(SMESH_Mesh&         aMesh,
           d2 = ee0.SquareDistance(BRep_Tool::Pnt(v));
         }
         *ip = pmap.FindIndex(v);
-        if(*ip <= 0)
+        if(*ip <= 0) {
           *ip = pmap.Add(v);
-
+          SMESH_subMesh* sm = aMesh.GetSubMesh(v);
+          if ( sm->IsMeshComputed() )
+            edgeSubmeshes.insert( sm->GetSubMeshDS() );
+        }
         if (HasSizeMapOnVertex){
           vertexKey = VerticesWithSizeMap.FindIndex(v);
           if (VertexId2SizeMap.find(vertexKey)!=VertexId2SizeMap.end()){