From: Christophe Bourcier Date: Fri, 22 Apr 2016 08:41:12 +0000 (+0200) Subject: Disable minimum gradation limitation since MG-Tetra manages to deal with values ... X-Git-Tag: V7_8_0b1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=23d68f147bec8a59d8e970517c79eb0b9b08675d;p=plugins%2Fghs3dplugin.git Disable minimum gradation limitation since MG-Tetra manages to deal with values < 1.05 --- 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