PAL17694 (New Tool About Hexahedral Meshing)

Do not clean submesh before algo->Compute()
This commit is contained in:
eap 2007-11-15 14:33:11 +00:00
parent 575674a009
commit ed128f5447

View File

@ -1003,6 +1003,7 @@ SMESH_Hypothesis::Hypothesis_Status
if ( stateChange && oldAlgoState == HYP_OK ) { // hyp becomes KO if ( stateChange && oldAlgoState == HYP_OK ) { // hyp becomes KO
DeleteOwnListeners(); DeleteOwnListeners();
SetIsAlwaysComputed( false );
if (_subShape.ShapeType() == TopAbs_VERTEX ) { if (_subShape.ShapeType() == TopAbs_VERTEX ) {
// restore default states // restore default states
_algoState = HYP_OK; _algoState = HYP_OK;
@ -1323,8 +1324,8 @@ bool SMESH_subMesh::ComputeStateEngine(int event)
} }
} }
// compute // compute
CleanDependants(); // CleanDependants(); for "UseExisting_*D" algos
RemoveSubMeshElementsAndNodes(); // RemoveSubMeshElementsAndNodes();
ret = false; ret = false;
_computeState = FAILED_TO_COMPUTE; _computeState = FAILED_TO_COMPUTE;
_computeError = SMESH_ComputeError::New(COMPERR_OK,"",algo); _computeError = SMESH_ComputeError::New(COMPERR_OK,"",algo);