From 39695c04dab4ab00e8e8311c631a2ca0a46b3ca9 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 14 Jan 2009 13:15:32 +0000 Subject: [PATCH] 0019923: EDF 765 SMESH : default values of hypothesis + * \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)=0; --- src/GHS3DPlugin_Hypothesis.cxx | 13 +++++++++++++ src/GHS3DPlugin_Hypothesis.hxx | 5 +++++ 2 files changed, 18 insertions(+) diff --git a/src/GHS3DPlugin_Hypothesis.cxx b/src/GHS3DPlugin_Hypothesis.cxx index 525b3db..1b668ab 100644 --- a/src/GHS3DPlugin_Hypothesis.cxx +++ b/src/GHS3DPlugin_Hypothesis.cxx @@ -489,6 +489,19 @@ bool GHS3DPlugin_Hypothesis::SetParametersByMesh(const SMESH_Mesh* ,const TopoDS return false; } + +//================================================================================ +/*! + * \brief Return false + */ +//================================================================================ + +bool GHS3DPlugin_Hypothesis::SetParametersByElementSize(double /*elemLenght*/, + const SMESH_Mesh* /*theMesh*/) +{ + return false; +} + //================================================================================ /*! * \brief Return command to run ghs3d mesher excluding file prefix (-f) diff --git a/src/GHS3DPlugin_Hypothesis.hxx b/src/GHS3DPlugin_Hypothesis.hxx index a50d11a..83b6b86 100644 --- a/src/GHS3DPlugin_Hypothesis.hxx +++ b/src/GHS3DPlugin_Hypothesis.hxx @@ -127,6 +127,11 @@ public: */ virtual bool SetParametersByMesh(const SMESH_Mesh* theMesh, const TopoDS_Shape& theShape); + /*! + * \brief Does nothing + */ + virtual bool SetParametersByElementSize( double elemLenght, const SMESH_Mesh* theMesh=0); + private: bool myToMeshHoles; -- 2.39.2