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

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.Std._ByValue_SharedPtr_MRIFastWindingNumber fwn, int reduceAngleNumIters, bool decimate, float tinyEdgeLength, MR.Std._ByValue_Function_Bool_From_Float progress, MR.Std._ByValue_Function_Void_From_MRSignDetectionMode onSignDetectionModeSelected)
 Constructs MR.RebuildMeshSettings elementwise.
unsafe Const_RebuildMeshSettings (MR._ByValue_RebuildMeshSettings _other)
 Generated from constructor MR.RebuildMeshSettings.RebuildMeshSettings.
 Const_RebuildMeshSettings (Const_RebuildMeshSettings _other)
 Generated from constructor MR.RebuildMeshSettings.RebuildMeshSettings.
 Const_RebuildMeshSettings (RebuildMeshSettings _other)
 Generated from constructor MR.RebuildMeshSettings.RebuildMeshSettings.

Protected Member Functions

virtual unsafe void Dispose (bool disposing)

Protected Attributes

unsafe bool * __ref_storage_preSubdivide
unsafe float * __ref_storage_voxelSize
unsafe MR.SignDetectionModeShort__ref_storage_signMode
unsafe bool * __ref_storage_closeHolesInHoleWindingNumber
unsafe MR.OffsetMode__ref_storage_offsetMode
unsafe MR.UndirectedEdgeBitSet._Underlying ** __ptr_storage_outSharpEdges
unsafe float * __ref_storage_windingNumberThreshold
unsafe float * __ref_storage_windingNumberBeta
unsafe int * __ref_storage_reduceAngleNumIters
unsafe bool * __ref_storage_decimate
unsafe float * __ref_storage_tinyEdgeLength

Properties

unsafe bool 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
unsafe float voxelSize [get]
 Size of voxel in grid conversions; The user is responsible for setting some positive value here.
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]
 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
unsafe float 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
unsafe MR.Std.Const_SharedPtr_MRIFastWindingNumber fwn [get, protected set]
 defines particular implementation of IFastWindingNumber interface that will compute windings (if required). If it is not specified, default FastWindingNumber is used
unsafe int reduceAngleNumIters [get]
 the number of iterations to minimize summed deviation of triangle-triangle angles from plane; this mode highlights sharp edges; if decimation is on, this mode is performed before and after decimation and further reduces the number of triangles
unsafe bool decimate [get]
 whether to decimate resulting mesh
unsafe float 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
unsafe MR.Std.Const_Function_Bool_From_Float progress [get, protected set]
 To report algorithm's progress and cancel it on user demand.
unsafe MR.Std.Const_Function_Void_From_MRSignDetectionMode onSignDetectionModeSelected [get, protected set]
 this callback is invoked when SignDetectionMode is determined (useful if signMode = SignDetectionModeShort.Auto), but before actual work begins

Detailed Description

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

Constructor & Destructor Documentation

◆ Const_RebuildMeshSettings() [1/5]

unsafe MR.Const_RebuildMeshSettings.Const_RebuildMeshSettings ( )
inline

Constructs an empty (default-constructed) instance.

◆ Const_RebuildMeshSettings() [2/5]

unsafe MR.Const_RebuildMeshSettings.Const_RebuildMeshSettings ( bool preSubdivide,
float voxelSize,
MR.SignDetectionModeShort signMode,
bool closeHolesInHoleWindingNumber,
MR.OffsetMode offsetMode,
MR.UndirectedEdgeBitSet? outSharpEdges,
float windingNumberThreshold,
float windingNumberBeta,
MR.Std._ByValue_SharedPtr_MRIFastWindingNumber fwn,
int reduceAngleNumIters,
bool decimate,
float tinyEdgeLength,
MR.Std._ByValue_Function_Bool_From_Float progress,
MR.Std._ByValue_Function_Void_From_MRSignDetectionMode onSignDetectionModeSelected )
inline

Constructs MR.RebuildMeshSettings elementwise.

◆ Const_RebuildMeshSettings() [3/5]

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

Generated from constructor MR.RebuildMeshSettings.RebuildMeshSettings.

◆ Const_RebuildMeshSettings() [4/5]

MR.Const_RebuildMeshSettings.Const_RebuildMeshSettings ( Const_RebuildMeshSettings _other)
inline

Generated from constructor MR.RebuildMeshSettings.RebuildMeshSettings.

◆ Const_RebuildMeshSettings() [5/5]

MR.Const_RebuildMeshSettings.Const_RebuildMeshSettings ( RebuildMeshSettings _other)
inline

Generated from constructor MR.RebuildMeshSettings.RebuildMeshSettings.

Member Function Documentation

◆ Dispose() [1/2]

virtual void MR.Const_RebuildMeshSettings.Dispose ( )
inlinevirtual

◆ Dispose() [2/2]

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

Member Data Documentation

◆ __ptr_storage_outSharpEdges

unsafe MR.UndirectedEdgeBitSet._Underlying** MR.Const_RebuildMeshSettings.__ptr_storage_outSharpEdges
protected

◆ __ref_storage_closeHolesInHoleWindingNumber

unsafe bool* MR.Const_RebuildMeshSettings.__ref_storage_closeHolesInHoleWindingNumber
protected

◆ __ref_storage_decimate

unsafe bool* MR.Const_RebuildMeshSettings.__ref_storage_decimate
protected

◆ __ref_storage_offsetMode

unsafe MR.OffsetMode* MR.Const_RebuildMeshSettings.__ref_storage_offsetMode
protected

◆ __ref_storage_preSubdivide

unsafe bool* MR.Const_RebuildMeshSettings.__ref_storage_preSubdivide
protected

◆ __ref_storage_reduceAngleNumIters

unsafe int* MR.Const_RebuildMeshSettings.__ref_storage_reduceAngleNumIters
protected

◆ __ref_storage_signMode

unsafe MR.SignDetectionModeShort* MR.Const_RebuildMeshSettings.__ref_storage_signMode
protected

◆ __ref_storage_tinyEdgeLength

unsafe float* MR.Const_RebuildMeshSettings.__ref_storage_tinyEdgeLength
protected

◆ __ref_storage_voxelSize

unsafe float* MR.Const_RebuildMeshSettings.__ref_storage_voxelSize
protected

◆ __ref_storage_windingNumberBeta

unsafe float* MR.Const_RebuildMeshSettings.__ref_storage_windingNumberBeta
protected

◆ __ref_storage_windingNumberThreshold

unsafe float* MR.Const_RebuildMeshSettings.__ref_storage_windingNumberThreshold
protected

Property Documentation

◆ closeHolesInHoleWindingNumber

unsafe bool MR.Const_RebuildMeshSettings.closeHolesInHoleWindingNumber
get

whether to construct closed mesh in signMode = SignDetectionModeShort.HoleWindingNumber

◆ decimate

unsafe bool MR.Const_RebuildMeshSettings.decimate
get

whether to decimate resulting mesh

◆ fwn

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

unsafe MR.OffsetMode MR.Const_RebuildMeshSettings.offsetMode
get

◆ onSignDetectionModeSelected

unsafe MR.Std.Const_Function_Void_From_MRSignDetectionMode MR.Const_RebuildMeshSettings.onSignDetectionModeSelected
getprotected set

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

◆ outSharpEdges

unsafe MR.? UndirectedEdgeBitSet MR.Const_RebuildMeshSettings.outSharpEdges
get

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

◆ 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

◆ progress

unsafe MR.Std.Const_Function_Bool_From_Float MR.Const_RebuildMeshSettings.progress
getprotected set

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

◆ reduceAngleNumIters

unsafe int MR.Const_RebuildMeshSettings.reduceAngleNumIters
get

the number of iterations to minimize summed deviation of triangle-triangle angles from plane; this mode highlights sharp edges; if decimation is on, this mode is performed before and after decimation and further reduces the number of triangles

◆ signMode

unsafe MR.SignDetectionModeShort MR.Const_RebuildMeshSettings.signMode
get

◆ 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: