]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
Merge from BR_V5_IMP_P8
authoreap <eap@opencascade.com>
Thu, 22 Jan 2009 13:48:35 +0000 (13:48 +0000)
committereap <eap@opencascade.com>
Thu, 22 Jan 2009 13:48:35 +0000 (13:48 +0000)
src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx
src/BLSURFPlugin/BLSURFPlugin_Hypothesis.hxx

index 78148f06b03e1c8283e1557e9d44209bdd604b32..9fb211a51837534ed42dce4f6f082b4fdf9ea3af 100644 (file)
@@ -505,6 +505,19 @@ bool BLSURFPlugin_Hypothesis::SetParametersByMesh(const SMESH_Mesh*   theMesh,
   return false;
 }
 
+//=============================================================================
+/*!
+ * \brief Initialize my parameter values by linear size of mesh element.
+ *  \retval bool - true if parameter values have been successfully defined
+ */
+//=============================================================================
+
+bool BLSURFPlugin_Hypothesis::SetParametersByElementSize( double            elemLenght,
+                                                          const SMESH_Mesh* theMesh)
+{
+  return bool( _phySize = elemLenght );
+}
+
 //=============================================================================
 BLSURFPlugin_Hypothesis::Topology BLSURFPlugin_Hypothesis::GetDefaultTopology()
 {
index d11db90b13d8b7178bfd08d047389feba4c3f857..44f1055de5b3bd4952dd947e475bcf345c2cd834 100644 (file)
@@ -134,6 +134,12 @@ public:
    */
   virtual bool SetParametersByMesh(const SMESH_Mesh* theMesh, const TopoDS_Shape& theShape);
 
+  /*!
+   * \brief Initialize my parameter values by linear size of mesh element.
+   *  \retval bool - true if parameter values have been successfully defined
+   */
+  virtual bool SetParametersByElementSize( double elemLenght, const SMESH_Mesh* theMesh=0);
+
 private:
   Topology      _topology;
   PhysicalMesh  _physicalMesh;