From f84b1a5ecf74a0bc51f3044ab493374ea72e3678 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 23 Jan 2009 14:10:06 +0000 Subject: [PATCH] 0019941: EDF 766 SMESH : Max length hypothesis - virtual bool SetParametersByElementSize(double elemLenght, const SMESH_Mesh* theMesh=0)=0; + virtual bool SetParametersByDefaults(const TDefaults& dflts, const SMESH_Mesh* theMesh=0)=0; --- src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx | 8 ++++---- src/BLSURFPlugin/BLSURFPlugin_Hypothesis.hxx | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx index 9fb211a..ad35365 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx @@ -507,15 +507,15 @@ bool BLSURFPlugin_Hypothesis::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 BLSURFPlugin_Hypothesis::SetParametersByElementSize( double elemLenght, - const SMESH_Mesh* theMesh) +bool BLSURFPlugin_Hypothesis::SetParametersByDefaults(const TDefaults& dflts, + const SMESH_Mesh* theMesh) { - return bool( _phySize = elemLenght ); + return bool( _phySize = dflts._elemLength ); } //============================================================================= diff --git a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.hxx b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.hxx index 44f1055..a8fb7d2 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.hxx +++ b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.hxx @@ -135,10 +135,10 @@ public: virtual bool SetParametersByMesh(const SMESH_Mesh* theMesh, const TopoDS_Shape& theShape); /*! - * \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 */ - virtual bool SetParametersByElementSize( double elemLenght, const SMESH_Mesh* theMesh=0); + virtual bool SetParametersByDefaults(const TDefaults& dflts, const SMESH_Mesh* theMesh=0); private: Topology _topology; -- 2.39.2