Salome HOME
Do not try to compute sub-meshes if the main shape is already meshed
authoreap <eap@opencascade.com>
Tue, 1 Feb 2005 07:37:00 +0000 (07:37 +0000)
committereap <eap@opencascade.com>
Tue, 1 Feb 2005 07:37:00 +0000 (07:37 +0000)
src/SMESH/SMESH_Gen.cxx

index 01d864c..18df11e 100644 (file)
@@ -166,6 +166,9 @@ bool SMESH_Gen::Compute(SMESH_Mesh & aMesh, const TopoDS_Shape & aShape)
 
   SMESH_subMesh *sm = aMesh.GetSubMesh(aShape);
 
+  if ( sm->GetComputeState() == SMESH_subMesh::COMPUTE_OK )
+    return true; // already computed
+
   // -----------------------------------------------------------------
   // apply algos that do not require descretized boundaries, starting
   // from the most complex shapes