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

Public Member Functions

None __init__ (self)
None __init__ (self, ConstDistanceToMeshOptions arg0)
None __init__ (self, float minDistSq, float maxDistSq, bool nullOutsideMinMax, float windingNumberThreshold, float windingNumberBeta)
DistanceToMeshOptions assign (self, ConstDistanceToMeshOptions other)
float maxDistSq (self)
None maxDistSq (self, float arg1)
float minDistSq (self)
None minDistSq (self, float arg1)
bool nullOutsideMinMax (self)
None nullOutsideMinMax (self, bool arg1)
float windingNumberBeta (self)
None windingNumberBeta (self, float arg1)
float windingNumberThreshold (self)
None windingNumberThreshold (self, float arg1)
Public Member Functions inherited from mrmeshpy.ConstDistanceToMeshOptions
 __init__ (self, *args, **kwargs)

Static Public Member Functions

None __init__ (*args, **kwargs)

Additional Inherited Members

Static Protected Attributes inherited from mrmeshpy.ConstDistanceToMeshOptions
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__() [1/4]

None mrmeshpy.DistanceToMeshOptions.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/4]

None mrmeshpy.DistanceToMeshOptions.__init__ ( self)

◆ __init__() [3/4]

None mrmeshpy.DistanceToMeshOptions.__init__ ( self,
ConstDistanceToMeshOptions arg0 )
Implicit copy constructor.

◆ __init__() [4/4]

None mrmeshpy.DistanceToMeshOptions.__init__ ( self,
float minDistSq,
float maxDistSq,
bool nullOutsideMinMax,
float windingNumberThreshold,
float windingNumberBeta )
Implicit aggregate constructor.

Member Function Documentation

◆ assign()

DistanceToMeshOptions mrmeshpy.DistanceToMeshOptions.assign ( self,
ConstDistanceToMeshOptions other )

◆ maxDistSq() [1/2]

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

Reimplemented from mrmeshpy.ConstDistanceToMeshOptions.

◆ maxDistSq() [2/2]

None mrmeshpy.DistanceToMeshOptions.maxDistSq ( self,
float arg1 )
maximum squared distance from a point to mesh to be computed precisely

Reimplemented from mrmeshpy.ConstDistanceToMeshOptions.

◆ minDistSq() [1/2]

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

Reimplemented from mrmeshpy.ConstDistanceToMeshOptions.

◆ minDistSq() [2/2]

None mrmeshpy.DistanceToMeshOptions.minDistSq ( self,
float arg1 )
minimum squared distance from a point to mesh to be computed precisely

Reimplemented from mrmeshpy.ConstDistanceToMeshOptions.

◆ nullOutsideMinMax() [1/2]

bool mrmeshpy.DistanceToMeshOptions.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 from mrmeshpy.ConstDistanceToMeshOptions.

◆ nullOutsideMinMax() [2/2]

None mrmeshpy.DistanceToMeshOptions.nullOutsideMinMax ( self,
bool arg1 )
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 from mrmeshpy.ConstDistanceToMeshOptions.

◆ windingNumberBeta() [1/2]

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

Reimplemented from mrmeshpy.ConstDistanceToMeshOptions.

◆ windingNumberBeta() [2/2]

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

Reimplemented from mrmeshpy.ConstDistanceToMeshOptions.

◆ windingNumberThreshold() [1/2]

float mrmeshpy.DistanceToMeshOptions.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 from mrmeshpy.ConstDistanceToMeshOptions.

◆ windingNumberThreshold() [2/2]

None mrmeshpy.DistanceToMeshOptions.windingNumberThreshold ( self,
float arg1 )
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 from mrmeshpy.ConstDistanceToMeshOptions.


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