Salome HOME
22834: [CEA 1347] Viscous layers: be able to choose the extrusion method (imp_1347_vi...
[modules/smesh.git] / src / StdMeshers / StdMeshers_NumberOfSegments.cxx
index db970335234d5cb027d1db423a5113839ded2774..2f0d05b9d75e8aee3d1c903434f830bfd71da973 100644 (file)
@@ -185,8 +185,8 @@ void StdMeshers_NumberOfSegments::SetScaleFactor(double scaleFactor)
     //throw SALOME_Exception(LOCALIZED("not a scale distribution"));
   if (scaleFactor < PRECISION)
     throw SALOME_Exception(LOCALIZED("scale factor must be positive"));
-  //if (fabs(scaleFactor - 1.0) < PRECISION)
-  //  throw SALOME_Exception(LOCALIZED("scale factor must not be equal to 1"));
+  if (fabs(scaleFactor - 1.0) < PRECISION)
+    _distrType = DT_Regular;
 
   if (fabs(_scaleFactor - scaleFactor) > PRECISION)
   {