MeshLib C# Docs
Loading...
Searching...
No Matches
MR.Const_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 const half of the class. More...

+ Inheritance diagram for MR.Const_SignedDistanceToMeshOptions:

Classes

struct  _Underlying
 

Public Member Functions

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.
 

Static Public Member Functions

static unsafe implicit operator MR.Const_DistanceToMeshOptions (Const_SignedDistanceToMeshOptions self)
 

Protected Member Functions

virtual unsafe void Dispose (bool disposing)
 

Properties

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]
 
unsafe float windingNumberThreshold [get]
 
unsafe float windingNumberBeta [get]
 
- Properties inherited from MR.Misc.Object< Const_SignedDistanceToMeshOptions >
virtual bool _IsOwning [get]
 Returns true if this is an owning instance, and when disposed, will destroy the underlying C++ instance. If false, we assume that the underlying C++ instance will live long enough.
 

Additional Inherited Members

- Protected Attributes inherited from MR.Misc.Object< Const_SignedDistanceToMeshOptions >
bool _IsOwningVal
 

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 const half of the class.

Property Documentation

◆ nullOutsideMinMax

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

◆ windingNumberBeta

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