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;
This commit is contained in:
parent
168242d9ab
commit
2a1538968e
@ -289,11 +289,24 @@ istream & operator >>(istream & load, NETGENPlugin_Hypothesis & hyp)
|
|||||||
*/
|
*/
|
||||||
//================================================================================
|
//================================================================================
|
||||||
bool NETGENPlugin_Hypothesis::SetParametersByMesh(const SMESH_Mesh* theMesh,
|
bool NETGENPlugin_Hypothesis::SetParametersByMesh(const SMESH_Mesh* theMesh,
|
||||||
const TopoDS_Shape& theShape)
|
const TopoDS_Shape& theShape)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//================================================================================
|
||||||
|
/*!
|
||||||
|
* \brief Initialize my parameter values by linear size of mesh element.
|
||||||
|
* \retval bool - true if parameter values have been successfully defined
|
||||||
|
*/
|
||||||
|
//================================================================================
|
||||||
|
|
||||||
|
bool NETGENPlugin_Hypothesis::SetParametersByElementSize(double elemLenght,
|
||||||
|
const SMESH_Mesh* /*theMesh*/)
|
||||||
|
{
|
||||||
|
return bool( _maxSize = elemLenght );
|
||||||
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
/*!
|
/*!
|
||||||
*
|
*
|
||||||
|
@ -102,6 +102,12 @@ public:
|
|||||||
*/
|
*/
|
||||||
virtual bool SetParametersByMesh(const SMESH_Mesh* theMesh, const TopoDS_Shape& theShape);
|
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:
|
private:
|
||||||
double _maxSize;
|
double _maxSize;
|
||||||
double _growthRate;
|
double _growthRate;
|
||||||
|
@ -205,3 +205,17 @@ bool NETGENPlugin_SimpleHypothesis_2D::SetParametersByMesh(const SMESH_Mesh* t
|
|||||||
}
|
}
|
||||||
return nbEdges;
|
return nbEdges;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//================================================================================
|
||||||
|
/*!
|
||||||
|
* \brief Initialize my parameter values by linear size of mesh element.
|
||||||
|
* \retval bool - true if parameter values have been successfully defined
|
||||||
|
*/
|
||||||
|
//================================================================================
|
||||||
|
|
||||||
|
bool NETGENPlugin_SimpleHypothesis_2D::SetParametersByElementSize(double elemLenght,
|
||||||
|
const SMESH_Mesh* /*theMesh*/)
|
||||||
|
{
|
||||||
|
return bool( _segmentLength = elemLenght );
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -91,6 +91,12 @@ public:
|
|||||||
*/
|
*/
|
||||||
virtual bool SetParametersByMesh(const SMESH_Mesh* theMesh, const TopoDS_Shape& theShape);
|
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:
|
private:
|
||||||
int _nbSegments;
|
int _nbSegments;
|
||||||
double _segmentLength, _area;
|
double _segmentLength, _area;
|
||||||
|
Loading…
Reference in New Issue
Block a user