From bfcfbc1ba9c6fb521332684332cccfae9a67d04c Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 15 Nov 2013 10:20:33 +0000 Subject: [PATCH] Prevent failure if a degenerated EDGE is not meshed --- src/SMESH/SMESH_subMesh.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.39.2