MeshLib C# Docs
Loading...
Searching...
No Matches
MR.SignedDistanceToMeshOptions Class Reference

options determining computation of signed distance from a point to a mesh Generated from class MR.SignedDistanceToMeshOptions. Base classes: Direct: (non-virtual) MR.DistanceToMeshOptions This is the non-const half of the class. More...

+ Inheritance diagram for MR.SignedDistanceToMeshOptions:

Public Member Functions

unsafe SignedDistanceToMeshOptions ()
 Constructs an empty (default-constructed) instance.
 
unsafe SignedDistanceToMeshOptions (MR.Const_SignedDistanceToMeshOptions _other)
 Generated from constructor MR.SignedDistanceToMeshOptions.SignedDistanceToMeshOptions.
 
 SignedDistanceToMeshOptions (SignedDistanceToMeshOptions _other)
 Generated from constructor MR.SignedDistanceToMeshOptions.SignedDistanceToMeshOptions.
 
unsafe MR.SignedDistanceToMeshOptions assign (MR.Const_SignedDistanceToMeshOptions _other)
 Generated from method MR.SignedDistanceToMeshOptions.operator=.
 

Static Public Member Functions

static unsafe implicit operator MR.DistanceToMeshOptions (SignedDistanceToMeshOptions self)
 

Properties

new unsafe ref MR.SignDetectionMode signMode [get]
 the method to compute distance sign
 
new unsafe ref float minDistSq [get]
 minimum squared distance from a point to mesh to be computed precisely
 
new unsafe ref float maxDistSq [get]
 maximum squared distance from a point to mesh to be computed precisely
 
new unsafe ref bool nullOutsideMinMax [get]
 
new unsafe ref float windingNumberThreshold [get]
 
new unsafe ref float windingNumberBeta [get]
 

Detailed Description

options determining computation of signed distance from a point to a mesh Generated from class MR.SignedDistanceToMeshOptions. Base classes: Direct: (non-virtual) MR.DistanceToMeshOptions This is the non-const half of the class.

Constructor & Destructor Documentation

◆ SignedDistanceToMeshOptions() [1/3]

unsafe MR.SignedDistanceToMeshOptions.SignedDistanceToMeshOptions ( )
inline

Constructs an empty (default-constructed) instance.

◆ SignedDistanceToMeshOptions() [2/3]

unsafe MR.SignedDistanceToMeshOptions.SignedDistanceToMeshOptions ( MR.Const_SignedDistanceToMeshOptions _other)
inline

Generated from constructor MR.SignedDistanceToMeshOptions.SignedDistanceToMeshOptions.

◆ SignedDistanceToMeshOptions() [3/3]

MR.SignedDistanceToMeshOptions.SignedDistanceToMeshOptions ( SignedDistanceToMeshOptions _other)
inline

Generated from constructor MR.SignedDistanceToMeshOptions.SignedDistanceToMeshOptions.

Member Function Documentation

◆ assign()

unsafe MR.SignedDistanceToMeshOptions MR.SignedDistanceToMeshOptions.assign ( MR.Const_SignedDistanceToMeshOptions _other)
inline

Generated from method MR.SignedDistanceToMeshOptions.operator=.

◆ operator MR.DistanceToMeshOptions()

static unsafe implicit MR.SignedDistanceToMeshOptions.operator MR.DistanceToMeshOptions ( SignedDistanceToMeshOptions self)
inlinestatic

Property Documentation

◆ maxDistSq

new unsafe ref float MR.SignedDistanceToMeshOptions.maxDistSq
get

maximum squared distance from a point to mesh to be computed precisely

◆ minDistSq

new unsafe ref float MR.SignedDistanceToMeshOptions.minDistSq
get

minimum squared distance from a point to mesh to be computed precisely

◆ nullOutsideMinMax

new unsafe ref bool MR.SignedDistanceToMeshOptions.nullOutsideMinMax
get

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

◆ signMode

new unsafe ref MR.SignDetectionMode MR.SignedDistanceToMeshOptions.signMode
get

the method to compute distance sign

◆ windingNumberBeta

new unsafe ref float MR.SignedDistanceToMeshOptions.windingNumberBeta
get

only for SignDetectionMode.HoleWindingRule: determines the precision of fast approximation: the more the better, minimum value is 1

◆ windingNumberThreshold

new unsafe ref float MR.SignedDistanceToMeshOptions.windingNumberThreshold
get

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


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