xmsmesh  1.0
xms::SmoothIo Class Reference

Helper class for size function smoothing. More...

Public Member Functions

bool CalcMaxSize (double a_length, float a_smoothVal, double &a_maxSize)
 Calculates a max size for use in meiDoSmooth. More...
 
double CalcMinSize (double a_length, float a_smoothVal, double a_calcMaxSize)
 Calculates a max size for use in meiDoSmooth. More...
 

Public Attributes

BSHP< TrTinm_tin
 geometry defining connections between points
 
const VecFltm_sizes
 array of size values
 
int m_anchorType
 anchor to min or max value
 
DynBitset m_ptsFlag
 flags indicating whether a point should be processed
 
VecFltm_smoothSize
 the output smoothed sizes
 
bool m_checkMinSize
 flag to indicate that the min size should be checked
 
double m_sizeRatio
 size ratio value
 
double m_minSize
 min size
 
double m_scaleFactor
 scaling factor
 
double m_percentGrowth
 growth factor
 
double m_logPercentGrowth
 growth factor
 
double m_maxSize
 max size used with elevation smoothing
 

Detailed Description

Helper class for size function smoothing.

Definition at line 44 of file MeMeshUtils.cpp.

Member Function Documentation

◆ CalcMaxSize()

bool xms::SmoothIo::CalcMaxSize ( double  a_length,
float  a_smoothVal,
double &  a_maxSize 
)

Calculates a max size for use in meiDoSmooth.

Parameters
[in]a_lengthLength between points being considered
[in]a_smoothValCurrent size function value at point being evaluated
[out]a_maxSizeThe max size at the point being evaluated
Returns
True if no problems encountered

Definition at line 91 of file MeMeshUtils.cpp.

References m_checkMinSize, m_logPercentGrowth, m_maxSize, m_percentGrowth, m_scaleFactor, and XM_ENSURE_TRUE.

Referenced by xms::meiDoSmooth().

◆ CalcMinSize()

double xms::SmoothIo::CalcMinSize ( double  a_length,
float  a_smoothVal,
double  a_calcMaxSize 
)

Calculates a max size for use in meiDoSmooth.

Parameters
[in]a_lengthLength between points being considered
[in]a_smoothValCurrent size function value at point being evaluated
[in]a_calcMaxSizeThe max size calculated at the point being evaluated
Returns
the min size

Definition at line 114 of file MeMeshUtils.cpp.

References m_checkMinSize, and m_maxSize.

Referenced by xms::meiDoSmooth().


The documentation for this class was generated from the following file: