MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ConstDistanceToMeshOptions Class Reference
Inheritance diagram for mrmeshpy.ConstDistanceToMeshOptions:

Public Member Functions

 __init__ (self, *args, **kwargs)
float maxDistSq (self)
float minDistSq (self)
bool nullOutsideMinMax (self)
float windingNumberBeta (self)
float windingNumberThreshold (self)

Static Protected Attributes

typing _offsetof_maxDistSq = 4
typing _offsetof_minDistSq = 0
typing _offsetof_nullOutsideMinMax = 8
typing _offsetof_windingNumberBeta = 16
typing _offsetof_windingNumberThreshold = 12

Detailed Description

Generated from:  MR::DistanceToMeshOptions

options determining computation of distance from a point to a mesh

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstDistanceToMeshOptions.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstDistanceToMeshOptions) -> None

2. __init__(self: meshlib.mrmeshpy.ConstDistanceToMeshOptions, arg0: meshlib.mrmeshpy.ConstDistanceToMeshOptions) -> None

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.ConstDistanceToMeshOptions, minDistSq: float, maxDistSq: float, nullOutsideMinMax: bool, windingNumberThreshold: float, windingNumberBeta: float) -> None

Implicit aggregate constructor.

4. __init__(self: meshlib.mrmeshpy.ConstDistanceToMeshOptions, : meshlib.mrmeshpy.ConstDistanceToMeshOptions) -> None

Member Function Documentation

◆ maxDistSq()

float mrmeshpy.ConstDistanceToMeshOptions.maxDistSq ( self)
maximum squared distance from a point to mesh to be computed precisely

Reimplemented in mrmeshpy.DistanceToMeshOptions, and mrmeshpy.DistanceToMeshOptions.

◆ minDistSq()

float mrmeshpy.ConstDistanceToMeshOptions.minDistSq ( self)
minimum squared distance from a point to mesh to be computed precisely

Reimplemented in mrmeshpy.DistanceToMeshOptions, and mrmeshpy.DistanceToMeshOptions.

◆ nullOutsideMinMax()

bool mrmeshpy.ConstDistanceToMeshOptions.nullOutsideMinMax ( self)
what to do if actual distance is outside [min, max) range:
true - return std::nullopt for std::optional<float> or NaN for float,
false - return approximate value of the distance (with correct sign in case of SignDetectionMode::HoleWindingRule);
please note that in HoleWindingRule the sign can change even for too small or too large distances,
so if you would like to get closed mesh from marching cubes, set false here

Reimplemented in mrmeshpy.DistanceToMeshOptions, and mrmeshpy.DistanceToMeshOptions.

◆ windingNumberBeta()

float mrmeshpy.ConstDistanceToMeshOptions.windingNumberBeta ( self)
only for SignDetectionMode::HoleWindingRule:
determines the precision of fast approximation: the more the better, minimum value is 1

Reimplemented in mrmeshpy.DistanceToMeshOptions, and mrmeshpy.DistanceToMeshOptions.

◆ windingNumberThreshold()

float mrmeshpy.ConstDistanceToMeshOptions.windingNumberThreshold ( self)
only for SignDetectionMode::HoleWindingRule:
positive distance if winding number below or equal this threshold;
ideal threshold: 0.5 for closed meshes; 0.0 for planar meshes

Reimplemented in mrmeshpy.DistanceToMeshOptions, and mrmeshpy.DistanceToMeshOptions.

Member Data Documentation

◆ _offsetof_maxDistSq

typing mrmeshpy.ConstDistanceToMeshOptions._offsetof_maxDistSq = 4
staticprotected

◆ _offsetof_minDistSq

typing mrmeshpy.ConstDistanceToMeshOptions._offsetof_minDistSq = 0
staticprotected

◆ _offsetof_nullOutsideMinMax

typing mrmeshpy.ConstDistanceToMeshOptions._offsetof_nullOutsideMinMax = 8
staticprotected

◆ _offsetof_windingNumberBeta

typing mrmeshpy.ConstDistanceToMeshOptions._offsetof_windingNumberBeta = 16
staticprotected

◆ _offsetof_windingNumberThreshold

typing mrmeshpy.ConstDistanceToMeshOptions._offsetof_windingNumberThreshold = 12
staticprotected

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