OpenMesh.Tools.Decimater.ModRoundnessT
- class
ModRoundnessT
(DecimaterType): ModBaseT!(DecimaterType);
- Compute error value based on roundness criteria.
- this(DecimaterType _dec);
- Constructor
- float
collapse_priority
(ref CollapseInfo _ci);
- Compute collapse priority due to roundness of triangle.
The roundness is computed by dividing the radius of the
circumference by the length of the shortest edge. The result is
normalized.
\return [0:1] or ILLEGAL_COLLAPSE in non-binary mode
\return LEGAL_COLLAPSE or ILLEGAL_COLLAPSE in binary mode
See Also:
set_min_roundness()
- void
set_min_roundness
(value_type _min_roundness, bool _binary = true);
- Set a minimum roundness value.
\param min_roundness in range (0,1)
\param binary Set true, if the binary mode should be enabled,
else false. In latter case the collapse_priority()
returns a float value if the constrain does not apply
and ILLEGAL_COLLAPSE else.
- void
unset_min_roundness
();
- Unset minimum value constraint and enable non-binary mode.
|