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=.
Public Member Functions inherited from MR.Const_SignedDistanceToMeshOptions
virtual void Dispose ()
unsafe Const_SignedDistanceToMeshOptions ()
 Constructs an empty (default-constructed) instance.
unsafe Const_SignedDistanceToMeshOptions (MR.Const_SignedDistanceToMeshOptions _other)
 Generated from constructor MR.SignedDistanceToMeshOptions.SignedDistanceToMeshOptions.
 Const_SignedDistanceToMeshOptions (SignedDistanceToMeshOptions _other)
 Generated from constructor MR.SignedDistanceToMeshOptions.SignedDistanceToMeshOptions.

Static Public Member Functions

static unsafe implicit operator MR.DistanceToMeshOptions (SignedDistanceToMeshOptions self)
Static Public Member Functions inherited from MR.Const_SignedDistanceToMeshOptions
static unsafe implicit operator MR.Const_DistanceToMeshOptions (Const_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]
 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
new unsafe ref float 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
new unsafe ref float windingNumberBeta [get]
 only for SignDetectionMode.HoleWindingRule: determines the precision of fast approximation: the more the better, minimum value is 1
Properties inherited from MR.Const_SignedDistanceToMeshOptions
unsafe MR.SignDetectionMode signMode [get]
 the method to compute distance sign
unsafe float minDistSq [get]
 minimum squared distance from a point to mesh to be computed precisely
unsafe float maxDistSq [get]
 maximum squared distance from a point to mesh to be computed precisely
unsafe bool 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
unsafe float 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
unsafe float windingNumberBeta [get]
 only for SignDetectionMode.HoleWindingRule: determines the precision of fast approximation: the more the better, minimum value is 1

Additional Inherited Members

Protected Member Functions inherited from MR.Const_SignedDistanceToMeshOptions
virtual unsafe void Dispose (bool disposing)
Protected Attributes inherited from MR.Const_SignedDistanceToMeshOptions
unsafe MR.SignDetectionMode__ref_storage_signMode
unsafe float * __ref_storage_minDistSq
unsafe float * __ref_storage_maxDistSq
unsafe bool * __ref_storage_nullOutsideMinMax
unsafe float * __ref_storage_windingNumberThreshold
unsafe float * __ref_storage_windingNumberBeta

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

◆ SignedDistanceToMeshOptions() [3/3]

MR.SignedDistanceToMeshOptions.SignedDistanceToMeshOptions ( SignedDistanceToMeshOptions _other)
inline

Member Function Documentation

◆ assign()

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

Generated from method MR::SignedDistanceToMeshOptions::operator=.

◆ operator MR.DistanceToMeshOptions()

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: