From d1338da8d9ea91ad8d04569e3adb750291f4df1a Mon Sep 17 00:00:00 2001 From: Christophe Bourcier Date: Fri, 22 Apr 2016 10:41:12 +0200 Subject: [PATCH] Disable minimum gradation limitation since MG-Tetra manages to deal with values < 1.05 --- src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.cxx | 2 -- src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.cxx b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.cxx index c66427e..8ea2391 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.cxx +++ b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.cxx @@ -380,8 +380,6 @@ char* GHS3DPlugin_Hypothesis_i::GetTextOption() void GHS3DPlugin_Hypothesis_i::SetGradation(CORBA::Double gradation) { - if (gradation <= 1) - THROW_SALOME_CORBA_EXCEPTION( "The volumic gradation must be > 1",SALOME::BAD_PARAM ); ASSERT(myBaseImpl); if (gradation != GetGradation()) { this->GetImpl()->SetGradation(gradation); diff --git a/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx b/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx index 5189800..2db3a1b 100644 --- a/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx +++ b/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx @@ -441,7 +441,7 @@ QFrame* GHS3DPluginGUI_HypothesisCreator::buildFrame() myAdvWidget->boundaryRecoveryCheck ->setText (tr( "RECOVERY_VERSION" )); myAdvWidget->FEMCorrectionCheck ->setText (tr( "FEM_CORRECTION" )); myAdvWidget->gradationLabel ->setText (tr( "GHS3D_GRADATION" )); - myAdvWidget->gradationSpinBox->RangeStepAndValidator(1.05, 5.0, 0.05, "length_precision"); + myAdvWidget->gradationSpinBox->RangeStepAndValidator(0.0, 5.0, 0.05, "length_precision"); myAdvWidget->textOptionLabel->setText(tr( "TEXT_OPTION" )); // Enforced vertices parameters -- 2.39.2