mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 02:00:34 +05:00
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:
parent
0990956108
commit
8726d7811f
@ -1613,11 +1613,13 @@ bool SMESH_subMesh::Evaluate(MapShapeNbElems& aResMap)
|
|||||||
ret = algo->CheckHypothesis((*_father), _subShape, hyp_status);
|
ret = algo->CheckHypothesis((*_father), _subShape, hyp_status);
|
||||||
if (!ret) return false;
|
if (!ret) return false;
|
||||||
|
|
||||||
TopoDS_Shape shape = _subShape;
|
if ( !aResMap.count(this) )
|
||||||
|
{
|
||||||
_computeError = SMESH_ComputeError::New(COMPERR_OK,"",algo);
|
_computeError = SMESH_ComputeError::New(COMPERR_OK,"",algo);
|
||||||
|
ret = algo->Evaluate((*_father), _subShape, aResMap);
|
||||||
|
|
||||||
ret = algo->Evaluate((*_father), shape, aResMap);
|
aResMap.insert( make_pair( this,vector<int>(0)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user