mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 17:00:34 +05:00
eliminate compilation warning
This commit is contained in:
parent
c50dcca3fe
commit
413a2425d7
@ -206,6 +206,6 @@ bool StdMeshers_Arithmetic1D::SetParametersByMesh(const SMESH_Mesh* theMesh,
|
|||||||
bool StdMeshers_Arithmetic1D::SetParametersByDefaults(const TDefaults& dflts,
|
bool StdMeshers_Arithmetic1D::SetParametersByDefaults(const TDefaults& dflts,
|
||||||
const SMESH_Mesh* /*mesh*/)
|
const SMESH_Mesh* /*mesh*/)
|
||||||
{
|
{
|
||||||
return bool( _begLength = _endLength = dflts._elemLength );
|
return ( _begLength = _endLength = dflts._elemLength );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
#include "SMESHDS_SubMesh.hxx"
|
#include "SMESHDS_SubMesh.hxx"
|
||||||
//#include "SMESH_Algo.hxx"
|
//#include "SMESH_Algo.hxx"
|
||||||
#include "SMESH_Mesh.hxx"
|
#include "SMESH_Mesh.hxx"
|
||||||
#include "SMESH_MeshEditor.hxx"
|
#include "SMESH_MesherHelper.hxx"
|
||||||
#include "SMESH_ComputeError.hxx"
|
#include "SMESH_ComputeError.hxx"
|
||||||
#include "SMESH_Block.hxx"
|
#include "SMESH_Block.hxx"
|
||||||
|
|
||||||
|
@ -244,6 +244,6 @@ bool StdMeshers_LocalLength::SetParametersByMesh(const SMESH_Mesh* theMesh,
|
|||||||
bool StdMeshers_LocalLength::SetParametersByDefaults(const TDefaults& dflts,
|
bool StdMeshers_LocalLength::SetParametersByDefaults(const TDefaults& dflts,
|
||||||
const SMESH_Mesh* /*theMesh*/)
|
const SMESH_Mesh* /*theMesh*/)
|
||||||
{
|
{
|
||||||
return bool( _length = dflts._elemLength );
|
return ( _length = dflts._elemLength );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -195,6 +195,6 @@ bool StdMeshers_MaxElementArea::SetParametersByMesh(const SMESH_Mesh* theMesh,
|
|||||||
bool StdMeshers_MaxElementArea::SetParametersByDefaults(const TDefaults& dflts,
|
bool StdMeshers_MaxElementArea::SetParametersByDefaults(const TDefaults& dflts,
|
||||||
const SMESH_Mesh* /*theMesh*/)
|
const SMESH_Mesh* /*theMesh*/)
|
||||||
{
|
{
|
||||||
return bool( _maxArea = dflts._elemLength*dflts._elemLength );
|
return ( _maxArea = dflts._elemLength*dflts._elemLength );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -206,6 +206,6 @@ bool StdMeshers_MaxElementVolume::SetParametersByMesh(const SMESH_Mesh* theMes
|
|||||||
bool StdMeshers_MaxElementVolume::SetParametersByDefaults(const TDefaults& dflts,
|
bool StdMeshers_MaxElementVolume::SetParametersByDefaults(const TDefaults& dflts,
|
||||||
const SMESH_Mesh* /*theMesh*/)
|
const SMESH_Mesh* /*theMesh*/)
|
||||||
{
|
{
|
||||||
return bool( _maxVolume = dflts._elemLength*dflts._elemLength*dflts._elemLength );
|
return ( _maxVolume = dflts._elemLength*dflts._elemLength*dflts._elemLength );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -237,6 +237,6 @@ bool StdMeshers_MaxLength::SetParametersByDefaults(const TDefaults& dflts,
|
|||||||
//_preestimation = ( dflts._elemLength > 0.);
|
//_preestimation = ( dflts._elemLength > 0.);
|
||||||
if ( dflts._elemLength > 0. )
|
if ( dflts._elemLength > 0. )
|
||||||
_preestimated = dflts._elemLength;
|
_preestimated = dflts._elemLength;
|
||||||
return bool( _length = dflts._elemLength );
|
return ( _length = dflts._elemLength );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -171,7 +171,7 @@ bool StdMeshers_NumberOfLayers::SetParametersByDefaults(const TDefaults& dflts,
|
|||||||
const SMESH_Mesh* theMesh)
|
const SMESH_Mesh* theMesh)
|
||||||
{
|
{
|
||||||
if ( dflts._elemLength )
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -692,6 +692,6 @@ bool StdMeshers_NumberOfSegments::SetParametersByMesh(const SMESH_Mesh* theMes
|
|||||||
bool StdMeshers_NumberOfSegments::SetParametersByDefaults(const TDefaults& dflts,
|
bool StdMeshers_NumberOfSegments::SetParametersByDefaults(const TDefaults& dflts,
|
||||||
const SMESH_Mesh* /*theMesh*/)
|
const SMESH_Mesh* /*theMesh*/)
|
||||||
{
|
{
|
||||||
return bool(_numberOfSegments = dflts._nbSegments );
|
return (_numberOfSegments = dflts._nbSegments );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -207,6 +207,6 @@ bool StdMeshers_StartEndLength::SetParametersByMesh(const SMESH_Mesh* theMesh,
|
|||||||
bool StdMeshers_StartEndLength::SetParametersByDefaults(const TDefaults& dflts,
|
bool StdMeshers_StartEndLength::SetParametersByDefaults(const TDefaults& dflts,
|
||||||
const SMESH_Mesh* /*theMesh*/)
|
const SMESH_Mesh* /*theMesh*/)
|
||||||
{
|
{
|
||||||
return bool(_begLength = _endLength = dflts._elemLength );
|
return (_begLength = _endLength = dflts._elemLength );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user