mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-05 17:54:17 +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
|
// Create hypothesis
|
||||||
if (aCreator) {
|
if (aCreator) {
|
||||||
// When create or edit a submesh, try to initialize a new hypothesis
|
// Get parameters appropriate to initialize a new hypothesis
|
||||||
// with values used to mesh a subshape
|
|
||||||
SMESH::SMESH_Hypothesis_var initParamHyp =
|
SMESH::SMESH_Hypothesis_var initParamHyp =
|
||||||
getInitParamsHypothesis(theTypeName, aData->ServerLibName);
|
getInitParamsHypothesis(theTypeName, aData->ServerLibName);
|
||||||
myDlg->setEnabled( false );
|
myDlg->setEnabled( false );
|
||||||
@ -1108,7 +1107,11 @@ void SMESHGUI_MeshOp::onEditHyp( const int theHypType, const int theIndex )
|
|||||||
|
|
||||||
SMESHGUI_GenericHypothesisCreator* aCreator = SMESH::GetHypothesisCreator( aHyp->GetName() );
|
SMESHGUI_GenericHypothesisCreator* aCreator = SMESH::GetHypothesisCreator( aHyp->GetName() );
|
||||||
if ( aCreator ) {
|
if ( aCreator ) {
|
||||||
|
// Get initial parameters
|
||||||
|
SMESH::SMESH_Hypothesis_var initParamHyp =
|
||||||
|
getInitParamsHypothesis( aHyp->GetName(), aHyp->GetLibName());
|
||||||
myDlg->setEnabled( false );
|
myDlg->setEnabled( false );
|
||||||
|
aCreator->setInitParamsHypothesis( initParamHyp );
|
||||||
aCreator->edit( aHyp.in(), aHypItem.second, dlg() );
|
aCreator->edit( aHyp.in(), aHypItem.second, dlg() );
|
||||||
myDlg->setEnabled( true );
|
myDlg->setEnabled( true );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user