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

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

+ Inheritance diagram for MR.RebuildMeshSettings:

Public Member Functions

unsafe RebuildMeshSettings ()
 Constructs an empty (default-constructed) instance.
 
unsafe 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 RebuildMeshSettings (MR._ByValue_RebuildMeshSettings _other)
 Generated from constructor MR.RebuildMeshSettings.RebuildMeshSettings.
 
 RebuildMeshSettings (Const_RebuildMeshSettings _other)
 Generated from constructor MR.RebuildMeshSettings.RebuildMeshSettings.
 
 RebuildMeshSettings (RebuildMeshSettings _other)
 Generated from constructor MR.RebuildMeshSettings.RebuildMeshSettings.
 
unsafe MR.RebuildMeshSettings assign (MR._ByValue_RebuildMeshSettings _other)
 Generated from method MR.RebuildMeshSettings.operator=.
 

Properties

new unsafe ref bool preSubdivide [get]
 
new unsafe ref float voxelSize [get]
 
new unsafe ref MR.SignDetectionModeShort signMode [get]
 
new unsafe ref bool closeHolesInHoleWindingNumber [get]
 whether to construct closed mesh in signMode = SignDetectionModeShort.HoleWindingNumber
 
new unsafe ref MR.OffsetMode offsetMode [get]
 
new unsafe MR.? UndirectedEdgeBitSet outSharpEdges [get, set]
 if non-null then created sharp edges (only if offsetMode = OffsetMode.Sharpening) will be saved here
 
new unsafe ref float windingNumberThreshold [get]
 
new unsafe ref float windingNumberBeta [get]
 
new unsafe MR.IFastWindingNumber fwn [get, protected set]
 
new unsafe ref bool decimate [get]
 whether to decimate resulting mesh
 
new unsafe ref float tinyEdgeLength [get]
 
new unsafe MR.Std.Function_BoolFuncFromFloat progress [get, protected set]
 To report algorithm's progress and cancel it on user demand.
 
new unsafe MR.Std.Function_VoidFuncFromMRSignDetectionMode onSignDetectionModeSelected [get, protected set]
 

Detailed Description

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

Constructor & Destructor Documentation

◆ RebuildMeshSettings() [1/5]

unsafe MR.RebuildMeshSettings.RebuildMeshSettings ( )
inline

Constructs an empty (default-constructed) instance.

◆ RebuildMeshSettings() [2/5]

unsafe MR.RebuildMeshSettings.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 )
inline

Constructs MR.RebuildMeshSettings elementwise.

◆ RebuildMeshSettings() [3/5]

unsafe MR.RebuildMeshSettings.RebuildMeshSettings ( MR._ByValue_RebuildMeshSettings _other)
inline

Generated from constructor MR.RebuildMeshSettings.RebuildMeshSettings.

◆ RebuildMeshSettings() [4/5]

MR.RebuildMeshSettings.RebuildMeshSettings ( Const_RebuildMeshSettings _other)
inline

Generated from constructor MR.RebuildMeshSettings.RebuildMeshSettings.

◆ RebuildMeshSettings() [5/5]

MR.RebuildMeshSettings.RebuildMeshSettings ( RebuildMeshSettings _other)
inline

Generated from constructor MR.RebuildMeshSettings.RebuildMeshSettings.

Member Function Documentation

◆ assign()

unsafe MR.RebuildMeshSettings MR.RebuildMeshSettings.assign ( MR._ByValue_RebuildMeshSettings _other)
inline

Generated from method MR.RebuildMeshSettings.operator=.

Property Documentation

◆ closeHolesInHoleWindingNumber

new unsafe ref bool MR.RebuildMeshSettings.closeHolesInHoleWindingNumber
get

whether to construct closed mesh in signMode = SignDetectionModeShort.HoleWindingNumber

◆ decimate

new unsafe ref bool MR.RebuildMeshSettings.decimate
get

whether to decimate resulting mesh

◆ fwn

new unsafe MR.IFastWindingNumber MR.RebuildMeshSettings.fwn
getprotected set

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

◆ offsetMode

new unsafe ref MR.OffsetMode MR.RebuildMeshSettings.offsetMode
get

◆ onSignDetectionModeSelected

new unsafe MR.Std.Function_VoidFuncFromMRSignDetectionMode MR.RebuildMeshSettings.onSignDetectionModeSelected
getprotected set

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

◆ outSharpEdges

new unsafe MR.? UndirectedEdgeBitSet MR.RebuildMeshSettings.outSharpEdges
getset

if non-null then created sharp edges (only if offsetMode = OffsetMode.Sharpening) will be saved here

◆ preSubdivide

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

◆ progress

new unsafe MR.Std.Function_BoolFuncFromFloat MR.RebuildMeshSettings.progress
getprotected set

To report algorithm's progress and cancel it on user demand.

◆ signMode

new unsafe ref MR.SignDetectionModeShort MR.RebuildMeshSettings.signMode
get

◆ tinyEdgeLength

new unsafe ref float MR.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

new unsafe ref float MR.RebuildMeshSettings.voxelSize
get

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

◆ windingNumberBeta

new unsafe ref float MR.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

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