bool StdMeshers_Arithmetic1D::SetParametersByDefaults(const TDefaults& dflts,
const SMESH_Mesh* /*mesh*/)
{
- return bool( _begLength = _endLength = dflts._elemLength );
+ return ( _begLength = _endLength = dflts._elemLength );
}
#include "SMESHDS_SubMesh.hxx"
//#include "SMESH_Algo.hxx"
#include "SMESH_Mesh.hxx"
-#include "SMESH_MeshEditor.hxx"
+#include "SMESH_MesherHelper.hxx"
#include "SMESH_ComputeError.hxx"
#include "SMESH_Block.hxx"
bool StdMeshers_LocalLength::SetParametersByDefaults(const TDefaults& dflts,
const SMESH_Mesh* /*theMesh*/)
{
- return bool( _length = dflts._elemLength );
+ return ( _length = dflts._elemLength );
}
bool StdMeshers_MaxElementArea::SetParametersByDefaults(const TDefaults& dflts,
const SMESH_Mesh* /*theMesh*/)
{
- return bool( _maxArea = dflts._elemLength*dflts._elemLength );
+ return ( _maxArea = dflts._elemLength*dflts._elemLength );
}
bool StdMeshers_MaxElementVolume::SetParametersByDefaults(const TDefaults& dflts,
const SMESH_Mesh* /*theMesh*/)
{
- return bool( _maxVolume = dflts._elemLength*dflts._elemLength*dflts._elemLength );
+ return ( _maxVolume = dflts._elemLength*dflts._elemLength*dflts._elemLength );
}
//_preestimation = ( dflts._elemLength > 0.);
if ( dflts._elemLength > 0. )
_preestimated = dflts._elemLength;
- return bool( _length = dflts._elemLength );
+ return ( _length = dflts._elemLength );
}
const SMESH_Mesh* theMesh)
{
if ( dflts._elemLength )
- return bool( theMesh ? _nbLayers = int( theMesh->GetShapeDiagonalSize() / dflts._elemLength/ 2.) : 0);
+ return theMesh ? (_nbLayers = int( theMesh->GetShapeDiagonalSize() / dflts._elemLength/ 2.)) : 0;
return false;
}
bool StdMeshers_NumberOfSegments::SetParametersByDefaults(const TDefaults& dflts,
const SMESH_Mesh* /*theMesh*/)
{
- return bool(_numberOfSegments = dflts._nbSegments );
+ return (_numberOfSegments = dflts._nbSegments );
}
bool StdMeshers_StartEndLength::SetParametersByDefaults(const TDefaults& dflts,
const SMESH_Mesh* /*theMesh*/)
{
- return bool(_begLength = _endLength = dflts._elemLength );
+ return (_begLength = _endLength = dflts._elemLength );
}