Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
455afe3
)
Do not try to compute sub-meshes if the main shape is already meshed
author
eap
<eap@opencascade.com>
Tue, 1 Feb 2005 07:37:00 +0000
(07:37 +0000)
committer
eap
<eap@opencascade.com>
Tue, 1 Feb 2005 07:37:00 +0000
(07:37 +0000)
src/SMESH/SMESH_Gen.cxx
patch
|
blob
|
history
diff --git
a/src/SMESH/SMESH_Gen.cxx
b/src/SMESH/SMESH_Gen.cxx
index 01d864c6f3747157c2a7e939eb07c647f6642727..18df11ed32c23abcd9b55154360ba55f16e6cbeb 100644
(file)
--- 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