Salome HOME
0019941: EDF 766 SMESH : Max length hypothesis
[modules/smesh.git] / src / StdMeshers / StdMeshers_MaxLength.cxx
index aa34f81d8b9d7a7b493441752f5df6860517568e..475e56ae5aa94c9c0448a673dcd503838c89d9e0 100644 (file)
@@ -226,17 +226,17 @@ bool StdMeshers_MaxLength::SetParametersByMesh(const SMESH_Mesh*   theMesh,
 }
 //================================================================================
 /*!
- * \brief Initialize my parameter values by linear size of mesh element.
+ * \brief Initialize my parameter values by default parameters.
  *  \retval bool - true if parameter values have been successfully defined
  */
 //================================================================================
 
-bool StdMeshers_MaxLength::SetParametersByElementSize(double            elemLenght,
-                                                      const SMESH_Mesh* /*theMesh*/)
+bool StdMeshers_MaxLength::SetParametersByDefaults(const TDefaults&  dflts,
+                                                   const SMESH_Mesh* /*theMesh*/)
 {
-  _preestimation = ( elemLenght > 0.);
-  if ( _preestimation )
-    _preestimated = elemLenght;
-  return bool( _length = elemLenght );
+  //_preestimation = ( dflts._elemLength > 0.);
+  if ( dflts._elemLength > 0. )
+    _preestimated = dflts._elemLength;
+  return bool( _length = dflts._elemLength );
 }