Prevent failure if a degenerated EDGE is not meshed

This commit is contained in:
eap 2013-11-15 10:20:33 +00:00
parent 862dfb92f3
commit bfcfbc1ba9

View File

@ -1654,7 +1654,10 @@ bool SMESH_subMesh::ComputeStateEngine(int event)
if (ret) if (ret)
{ {
for (; ret && subS.More(); subS.Next()) 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 // Set _computeError
if (!ret && !isComputeErrorSet) if (!ret && !isComputeErrorSet)