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

Generated from class MR.RebuildMeshSettings. This is the const half of the class. More...

+ Inheritance diagram for MR.Const_RebuildMeshSettings:

Classes

struct  _Underlying
 

Public Member Functions

virtual void Dispose ()
 
unsafe Const_RebuildMeshSettings ()
 Constructs an empty (default-constructed) instance.
 
unsafe Const_RebuildMeshSettings (bool preSubdivide, float voxelSize, MR.SignDetectionModeShort signMode, bool closeHolesInHoleWindingNumber, MR.OffsetMode offsetMode, MR.UndirectedEdgeBitSet? outSharpEdges, float windingNumberThreshold, float windingNumberBeta, MR._ByValueShared_IFastWindingNumber fwn, bool decimate, float tinyEdgeLength, MR.Std._ByValue_Function_BoolFuncFromFloat progress, MR.Std._ByValue_Function_VoidFuncFromMRSignDetectionMode onSignDetectionModeSelected)
 Constructs MR.RebuildMeshSettings elementwise.
 
unsafe Const_RebuildMeshSettings (MR._ByValue_RebuildMeshSettings _other)
 Generated from constructor MR.RebuildMeshSettings.RebuildMeshSettings.
 

Protected Member Functions

virtual unsafe void Dispose (bool disposing)
 

Properties

unsafe bool preSubdivide [get]
 
unsafe float voxelSize [get]
 
unsafe MR.SignDetectionModeShort signMode [get]
 
unsafe bool closeHolesInHoleWindingNumber [get]
 whether to construct closed mesh in signMode = SignDetectionModeShort.HoleWindingNumber
 
unsafe MR.OffsetMode offsetMode [get]
 
unsafe MR.? UndirectedEdgeBitSet outSharpEdges [get]
 if non-null then created sharp edges (only if offsetMode = OffsetMode.Sharpening) will be saved here
 
unsafe float windingNumberThreshold [get]
 
unsafe float windingNumberBeta [get]
 
unsafe MR.Const_IFastWindingNumber fwn [get]
 
unsafe bool decimate [get]
 whether to decimate resulting mesh
 
unsafe float tinyEdgeLength [get]
 
unsafe MR.Std.Const_Function_BoolFuncFromFloat progress [get]
 To report algorithm's progress and cancel it on user demand.
 
unsafe MR.Std.Const_Function_VoidFuncFromMRSignDetectionMode onSignDetectionModeSelected [get]
 
- Properties inherited from MR.Misc.Object< Const_RebuildMeshSettings >
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_RebuildMeshSettings >
bool _IsOwningVal
 

Detailed Description

Generated from class MR.RebuildMeshSettings. This is the const half of the class.

Property Documentation

◆ fwn

unsafe MR.Const_IFastWindingNumber MR.Const_RebuildMeshSettings.fwn
get

defines particular implementation of IFastWindingNumber interface that will compute windings (if required). If it is not specified, default FastWindingNumber is used

◆ onSignDetectionModeSelected

unsafe MR.Std.Const_Function_VoidFuncFromMRSignDetectionMode MR.Const_RebuildMeshSettings.onSignDetectionModeSelected
get

this callback is invoked when SignDetectionMode is determined (useful if signMode = SignDetectionModeShort.Auto), but before actual work begins

◆ preSubdivide

unsafe bool MR.Const_RebuildMeshSettings.preSubdivide
get

whether to make subdivision of initial mesh before conversion to voxels, despite time and memory required for the subdivision, it typically makes the whole rebuilding faster (or even much faster in case of large initial triangles), because AABB tree contains small triangles in leaves, which is good for both 1) search for closest triangle because the closest box more frequently contains the closest triangle, 2) and winding number approximation because of more frequent usage of approximation for distant dipoles

◆ tinyEdgeLength

unsafe float MR.Const_RebuildMeshSettings.tinyEdgeLength
get

only if decimate = true: edges not longer than this value will be collapsed even if it results in appearance of a triangle with high aspect ratio

◆ voxelSize

unsafe float MR.Const_RebuildMeshSettings.voxelSize
get

Size of voxel in grid conversions; The user is responsible for setting some positive value here

◆ windingNumberBeta

unsafe float MR.Const_RebuildMeshSettings.windingNumberBeta
get

if general winding number is used to differentiate inside from outside: determines the precision of fast approximation: the more the better, minimum value is 1

◆ windingNumberThreshold

unsafe float MR.Const_RebuildMeshSettings.windingNumberThreshold
get

if general winding number is used to differentiate inside from outside: 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: