0019296: EDF 681 SMESH - Pre-evaluation of the number of elements before mesh

Assure that this submesh is evaluated once
This commit is contained in:
eap 2010-01-27 10:09:15 +00:00
parent 0990956108
commit 8726d7811f

View File

@ -1613,11 +1613,13 @@ bool SMESH_subMesh::Evaluate(MapShapeNbElems& aResMap)
ret = algo->CheckHypothesis((*_father), _subShape, hyp_status);
if (!ret) return false;
TopoDS_Shape shape = _subShape;
if ( !aResMap.count(this) )
{
_computeError = SMESH_ComputeError::New(COMPERR_OK,"",algo);
ret = algo->Evaluate((*_father), _subShape, aResMap);
_computeError = SMESH_ComputeError::New(COMPERR_OK,"",algo);
ret = algo->Evaluate((*_father), shape, aResMap);
aResMap.insert( make_pair( this,vector<int>(0)));
}
}
return ret;