mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-05 14:44:18 +05:00
0019941: EDF 766 SMESH : Max length hypothesis
provide initial parameters at hypothesis edition as well
This commit is contained in:
parent
1527eb6887
commit
3b1db25f70
@ -1058,8 +1058,7 @@ void SMESHGUI_MeshOp::createHypothesis (const int theDim,
|
||||
|
||||
// Create hypothesis
|
||||
if (aCreator) {
|
||||
// When create or edit a submesh, try to initialize a new hypothesis
|
||||
// with values used to mesh a subshape
|
||||
// Get parameters appropriate to initialize a new hypothesis
|
||||
SMESH::SMESH_Hypothesis_var initParamHyp =
|
||||
getInitParamsHypothesis(theTypeName, aData->ServerLibName);
|
||||
myDlg->setEnabled( false );
|
||||
@ -1108,7 +1107,11 @@ void SMESHGUI_MeshOp::onEditHyp( const int theHypType, const int theIndex )
|
||||
|
||||
SMESHGUI_GenericHypothesisCreator* aCreator = SMESH::GetHypothesisCreator( aHyp->GetName() );
|
||||
if ( aCreator ) {
|
||||
// Get initial parameters
|
||||
SMESH::SMESH_Hypothesis_var initParamHyp =
|
||||
getInitParamsHypothesis( aHyp->GetName(), aHyp->GetLibName());
|
||||
myDlg->setEnabled( false );
|
||||
aCreator->setInitParamsHypothesis( initParamHyp );
|
||||
aCreator->edit( aHyp.in(), aHypItem.second, dlg() );
|
||||
myDlg->setEnabled( true );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user