ApproximationSettings
Canonical path: NemAll_Python_Geometry.ApproximationSettings
Class holding approximation options.
GetMaxDistance
Get MaxDistance value
Returns:
-
float
–const Reference to MaxDistance value
GetMaxLength
Get MaxLength value
Returns:
-
float
–const Reference to MaxLength value
GetSegmentation
Get Segmentation value
Returns:
-
int
–const Reference to Segmentation value
GetType
GetType() -> eApproximationSettingsType
IsBRepTesselation
Check whether the type of the settings is ASET_BREP_TESSELATION
Returns:
-
bool
–true/false.
IsMaxDistance
Check whether the type of the settings is ASET_MAX_DISTANCE
Returns:
-
bool
–true/false.
IsMaxLength
Check whether the type of the settings is ASET_MAX_LENGTH
Returns:
-
bool
–true/false.
IsSegmentation
Check whether the type of the settings is ASET_SEGMENTATION
Returns:
-
bool
–true/false.
SetBRepTesselation
SetBRepTesselation(
density: float, maxAngle: Angle, minLength: float, maxLength: float
)
Set all settings for BRep3D tesselation.
Parameters:
-
density
(float
) –new density value.
-
maxAngle
(Angle
) –new maximal edge length value.
-
minLength
(float
) –new minimal edge length value.
-
maxLength
(float
) –new maximal angle value.
SetMaxDistance
Set MaxDistance value.
Parameters:
-
maxDistance
(float
) –new MaxDistance value.
SetMaxLength
Set MaxLength value.
Parameters:
-
maxLength
(float
) –new MaxLength value.
SetSegmentation
Set Segmentation.
Parameters:
-
segmentation
(int
) –new Segmentation value.
__eq__
__eq__(right: ApproximationSettings) -> bool
Operator ==
Parameters:
-
right
(ApproximationSettings
) –settings to compare
Returns:
-
bool
–true if settings are equal
__init__
overloaded
__init__(
oType: eApproximationSettingsType = eApproximationSettingsType.ASET_SEGMENTATION,
value: float = 30.0,
)
Default constructor.
Other members will be set to 0. Types can be found in GeometryEnums.h
Parameters:
-
oType
(eApproximationSettingsType
, default:ASET_SEGMENTATION
) –Type of the settings which will be set
-
value
(float
, default:30.0
) –value which will be set
__init__(options: ApproximationSettings)
Copy constructor.
Parameters:
-
options
(ApproximationSettings
) –ApproximationSettings which will be copied.
__ne__
__ne__(right: ApproximationSettings) -> bool
Operator !=
Parameters:
-
right
(ApproximationSettings
) –settings to compare
Returns:
-
bool
–true if settings are NOT equal