From: eap Date: Mon, 19 Nov 2012 15:42:46 +0000 (+0000) Subject: 0021988: EDF 2484 SMESH : NETGEN and GDHS3D/BLSURF mixed meshes X-Git-Tag: V6_6_0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FV6_6_BR;p=plugins%2Fblsurfplugin.git 0021988: EDF 2484 SMESH : NETGEN and GDHS3D/BLSURF mixed meshes Clear pre-existing nodes on VERTEX'es --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index ad036b8..01cc508 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -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()){