]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0020210: EDF SMESH 976: Update of a smesh group after modification of the associated...
authoreap <eap@opencascade.com>
Fri, 3 Apr 2009 14:11:19 +0000 (14:11 +0000)
committereap <eap@opencascade.com>
Fri, 3 Apr 2009 14:11:19 +0000 (14:11 +0000)
void SMESH_Mesh::ShapeToMesh(const TopoDS_Shape & aShape)
{
 ...
+  else
+  {
+    _isShapeToMesh = false;
+    _shapeDiagonal = 0.0;
+    _myMeshDS->ShapeToMesh( PseudoShape() );
+  }

src/SMESH/SMESH_Mesh.cxx

index 695027dba0a2037b332407799cf6adff46af9778..b1cdde266031dfbd6327d4b0dddd66181de740ff 100644 (file)
@@ -177,6 +177,12 @@ void SMESH_Mesh::ShapeToMesh(const TopoDS_Shape & aShape)
                                         (TopAbs_ShapeEnum) ancType,
                                         _mapAncestors );
   }
+  else
+  {
+    _isShapeToMesh = false;
+    _shapeDiagonal = 0.0;
+    _myMeshDS->ShapeToMesh( PseudoShape() );
+  }
 }
 
 //=======================================================================