From: eap Date: Tue, 1 Feb 2005 07:37:00 +0000 (+0000) Subject: Do not try to compute sub-meshes if the main shape is already meshed X-Git-Tag: V2_2_0b2~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=35c1f52506e4410fa41ff757e3b859d643dc99f7;p=modules%2Fsmesh.git Do not try to compute sub-meshes if the main shape is already meshed --- diff --git a/src/SMESH/SMESH_Gen.cxx b/src/SMESH/SMESH_Gen.cxx index 01d864c6f..18df11ed3 100644 --- a/src/SMESH/SMESH_Gen.cxx +++ b/src/SMESH/SMESH_Gen.cxx @@ -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