From: eap Date: Fri, 15 Nov 2013 10:20:33 +0000 (+0000) Subject: Prevent failure if a degenerated EDGE is not meshed X-Git-Tag: V7_3_0a1~60 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bfcfbc1ba9c6fb521332684332cccfae9a67d04c;p=modules%2Fsmesh.git Prevent failure if a degenerated EDGE is not meshed --- diff --git a/src/SMESH/SMESH_subMesh.cxx b/src/SMESH/SMESH_subMesh.cxx index c6e3d5464..7b6b7dac3 100644 --- a/src/SMESH/SMESH_subMesh.cxx +++ b/src/SMESH/SMESH_subMesh.cxx @@ -1654,7 +1654,10 @@ bool SMESH_subMesh::ComputeStateEngine(int event) if (ret) { for (; ret && subS.More(); subS.Next()) - ret = _father->GetSubMesh( subS.Current() )->IsMeshComputed(); + if ( !_father->GetSubMesh( subS.Current() )->IsMeshComputed() && + ( _subShape.ShapeType() != TopAbs_EDGE || + !algo->isDegenerated( TopoDS::Edge( subS.Current() )))) + ret = false; } // Set _computeError if (!ret && !isComputeErrorSet)