MeshLib C# Docs
Loading...
Searching...
No Matches

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

Inheritance diagram for MR.Const_DistanceToMeshOptions:

Classes

struct  _Underlying

Public Member Functions

virtual void Dispose ()
unsafe Const_DistanceToMeshOptions ()
 Constructs an empty (default-constructed) instance.
unsafe Const_DistanceToMeshOptions (float minDistSq, float maxDistSq, bool nullOutsideMinMax, float windingNumberThreshold, float windingNumberBeta)
 Constructs MR.DistanceToMeshOptions elementwise.
unsafe Const_DistanceToMeshOptions (MR.Const_DistanceToMeshOptions _other)
 Generated from constructor MR.DistanceToMeshOptions.DistanceToMeshOptions.
 Const_DistanceToMeshOptions (DistanceToMeshOptions _other)
 Generated from constructor MR.DistanceToMeshOptions.DistanceToMeshOptions.

Protected Member Functions

virtual unsafe void Dispose (bool disposing)

Protected Attributes

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

Properties

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

Detailed Description

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

Constructor & Destructor Documentation

◆ Const_DistanceToMeshOptions() [1/4]

unsafe MR.Const_DistanceToMeshOptions.Const_DistanceToMeshOptions ( )
inline

Constructs an empty (default-constructed) instance.

◆ Const_DistanceToMeshOptions() [2/4]

unsafe MR.Const_DistanceToMeshOptions.Const_DistanceToMeshOptions ( float minDistSq,
float maxDistSq,
bool nullOutsideMinMax,
float windingNumberThreshold,
float windingNumberBeta )
inline

Constructs MR.DistanceToMeshOptions elementwise.

◆ Const_DistanceToMeshOptions() [3/4]

unsafe MR.Const_DistanceToMeshOptions.Const_DistanceToMeshOptions ( MR.Const_DistanceToMeshOptions _other)
inline

◆ Const_DistanceToMeshOptions() [4/4]

MR.Const_DistanceToMeshOptions.Const_DistanceToMeshOptions ( DistanceToMeshOptions _other)
inline

Member Function Documentation

◆ Dispose() [1/2]

virtual void MR.Const_DistanceToMeshOptions.Dispose ( )
inlinevirtual

◆ Dispose() [2/2]

virtual unsafe void MR.Const_DistanceToMeshOptions.Dispose ( bool disposing)
inlineprotectedvirtual

Member Data Documentation

◆ __ref_storage_maxDistSq

unsafe float* MR.Const_DistanceToMeshOptions.__ref_storage_maxDistSq
protected

◆ __ref_storage_minDistSq

unsafe float* MR.Const_DistanceToMeshOptions.__ref_storage_minDistSq
protected

◆ __ref_storage_nullOutsideMinMax

unsafe bool* MR.Const_DistanceToMeshOptions.__ref_storage_nullOutsideMinMax
protected

◆ __ref_storage_windingNumberBeta

unsafe float* MR.Const_DistanceToMeshOptions.__ref_storage_windingNumberBeta
protected

◆ __ref_storage_windingNumberThreshold

unsafe float* MR.Const_DistanceToMeshOptions.__ref_storage_windingNumberThreshold
protected

Property Documentation

◆ maxDistSq

unsafe float MR.Const_DistanceToMeshOptions.maxDistSq
get

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

◆ minDistSq

unsafe float MR.Const_DistanceToMeshOptions.minDistSq
get

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

◆ nullOutsideMinMax

unsafe bool MR.Const_DistanceToMeshOptions.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

◆ windingNumberBeta

unsafe float MR.Const_DistanceToMeshOptions.windingNumberBeta
get

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

◆ windingNumberThreshold

unsafe float MR.Const_DistanceToMeshOptions.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: