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

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

Inheritance diagram for MR.Const_MarchingCubesParams:

Classes

struct  _Underlying

Public Types

enum  CachingMode : int { Automatic = 0 , None = 1 , Normal = 2 }
 caching mode to reduce the number of accesses to voxel volume data on the first pass of the algorithm by consuming more memory on cache; note: the cache for the second pass of the algorithm (bit sets of invalid and lower-than-iso voxels are always allocated) More...

Public Member Functions

virtual void Dispose ()
unsafe Const_MarchingCubesParams ()
 Constructs an empty (default-constructed) instance.
unsafe Const_MarchingCubesParams (MR.Vector3f origin, MR.Std._ByValue_Function_Bool_From_Float cb, float iso, bool lessInside, MR.Vector_MRVoxelId_MRFaceId? outVoxelPerFaceMap, MR.Std._ByValue_Function_MRVector3f_From_ConstMRVector3fRef_ConstMRVector3fRef_Float_Float_Float positioner, int maxVertices, MR.MarchingCubesParams.CachingMode cachingMode, MR.Std._ByValue_Function_Void freeVolume)
 Constructs MR.MarchingCubesParams elementwise.
unsafe Const_MarchingCubesParams (MR._ByValue_MarchingCubesParams _other)
 Generated from constructor MR.MarchingCubesParams.MarchingCubesParams.
 Const_MarchingCubesParams (Const_MarchingCubesParams _other)
 Generated from constructor MR.MarchingCubesParams.MarchingCubesParams.
 Const_MarchingCubesParams (MarchingCubesParams _other)
 Generated from constructor MR.MarchingCubesParams.MarchingCubesParams.

Protected Member Functions

virtual unsafe void Dispose (bool disposing)

Protected Attributes

unsafe MR.Vector3f__ref_storage_origin
unsafe float * __ref_storage_iso
unsafe bool * __ref_storage_lessInside
unsafe MR.Vector_MRVoxelId_MRFaceId._Underlying ** __ptr_storage_outVoxelPerFaceMap
unsafe int * __ref_storage_maxVertices
unsafe MR.MarchingCubesParams.CachingMode__ref_storage_cachingMode

Properties

unsafe ref readonly MR.Vector3f origin [get]
 origin point of voxels box in 3D space with output mesh
unsafe MR.Std.Const_Function_Bool_From_Float cb [get, protected set]
 progress callback
unsafe float iso [get]
 target iso-value of the surface to be extracted from volume
unsafe bool lessInside [get]
 should be false for dense volumes, and true for distance volume
unsafe MR.? Vector_MRVoxelId_MRFaceId outVoxelPerFaceMap [get]
 optional output map FaceId->VoxelId
unsafe MR.Std.Const_Function_MRVector3f_From_ConstMRVector3fRef_ConstMRVector3fRef_Float_Float_Float positioner [get, protected set]
 function to calculate position of result mesh points if the function isn't set, a linear positioner will be used note: this function is called in parallel from different threads
unsafe int maxVertices [get]
 if the mesh exceeds this number of vertices, an error returns
unsafe MR.MarchingCubesParams.CachingMode cachingMode [get]
unsafe MR.Std.Const_Function_Void freeVolume [get, protected set]
 this optional function is called when volume is no longer needed to deallocate it and reduce peak memory consumption

Detailed Description

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

Member Enumeration Documentation

◆ CachingMode

caching mode to reduce the number of accesses to voxel volume data on the first pass of the algorithm by consuming more memory on cache; note: the cache for the second pass of the algorithm (bit sets of invalid and lower-than-iso voxels are always allocated)

Enumerator
Automatic 

choose caching mode automatically depending on volume type (current defaults: Normal for FunctionVolume and VdbVolume, None for others)

None 

don't cache any data

Normal 

allocates 2 full slices per parallel thread

Constructor & Destructor Documentation

◆ Const_MarchingCubesParams() [1/5]

unsafe MR.Const_MarchingCubesParams.Const_MarchingCubesParams ( )
inline

Constructs an empty (default-constructed) instance.

◆ Const_MarchingCubesParams() [2/5]

unsafe MR.Const_MarchingCubesParams.Const_MarchingCubesParams ( MR.Vector3f origin,
MR.Std._ByValue_Function_Bool_From_Float cb,
float iso,
bool lessInside,
MR.Vector_MRVoxelId_MRFaceId? outVoxelPerFaceMap,
MR.Std._ByValue_Function_MRVector3f_From_ConstMRVector3fRef_ConstMRVector3fRef_Float_Float_Float positioner,
int maxVertices,
MR.MarchingCubesParams.CachingMode cachingMode,
MR.Std._ByValue_Function_Void freeVolume )
inline

Constructs MR.MarchingCubesParams elementwise.

◆ Const_MarchingCubesParams() [3/5]

unsafe MR.Const_MarchingCubesParams.Const_MarchingCubesParams ( MR._ByValue_MarchingCubesParams _other)
inline

Generated from constructor MR.MarchingCubesParams.MarchingCubesParams.

◆ Const_MarchingCubesParams() [4/5]

MR.Const_MarchingCubesParams.Const_MarchingCubesParams ( Const_MarchingCubesParams _other)
inline

Generated from constructor MR.MarchingCubesParams.MarchingCubesParams.

◆ Const_MarchingCubesParams() [5/5]

MR.Const_MarchingCubesParams.Const_MarchingCubesParams ( MarchingCubesParams _other)
inline

Generated from constructor MR.MarchingCubesParams.MarchingCubesParams.

Member Function Documentation

◆ Dispose() [1/2]

virtual void MR.Const_MarchingCubesParams.Dispose ( )
inlinevirtual

◆ Dispose() [2/2]

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

Member Data Documentation

◆ __ptr_storage_outVoxelPerFaceMap

unsafe MR.Vector_MRVoxelId_MRFaceId._Underlying** MR.Const_MarchingCubesParams.__ptr_storage_outVoxelPerFaceMap
protected

◆ __ref_storage_cachingMode

unsafe MR.MarchingCubesParams.CachingMode* MR.Const_MarchingCubesParams.__ref_storage_cachingMode
protected

◆ __ref_storage_iso

unsafe float* MR.Const_MarchingCubesParams.__ref_storage_iso
protected

◆ __ref_storage_lessInside

unsafe bool* MR.Const_MarchingCubesParams.__ref_storage_lessInside
protected

◆ __ref_storage_maxVertices

unsafe int* MR.Const_MarchingCubesParams.__ref_storage_maxVertices
protected

◆ __ref_storage_origin

unsafe MR.Vector3f* MR.Const_MarchingCubesParams.__ref_storage_origin
protected

Property Documentation

◆ cachingMode

unsafe MR.MarchingCubesParams.CachingMode MR.Const_MarchingCubesParams.cachingMode
get

◆ cb

unsafe MR.Std.Const_Function_Bool_From_Float MR.Const_MarchingCubesParams.cb
getprotected set

progress callback

◆ freeVolume

unsafe MR.Std.Const_Function_Void MR.Const_MarchingCubesParams.freeVolume
getprotected set

this optional function is called when volume is no longer needed to deallocate it and reduce peak memory consumption

◆ iso

unsafe float MR.Const_MarchingCubesParams.iso
get

target iso-value of the surface to be extracted from volume

◆ lessInside

unsafe bool MR.Const_MarchingCubesParams.lessInside
get

should be false for dense volumes, and true for distance volume

◆ maxVertices

unsafe int MR.Const_MarchingCubesParams.maxVertices
get

if the mesh exceeds this number of vertices, an error returns

◆ origin

unsafe ref readonly MR.Vector3f MR.Const_MarchingCubesParams.origin
get

origin point of voxels box in 3D space with output mesh

◆ outVoxelPerFaceMap

unsafe MR.? Vector_MRVoxelId_MRFaceId MR.Const_MarchingCubesParams.outVoxelPerFaceMap
get

optional output map FaceId->VoxelId

◆ positioner

unsafe MR.Std.Const_Function_MRVector3f_From_ConstMRVector3fRef_ConstMRVector3fRef_Float_Float_Float MR.Const_MarchingCubesParams.positioner
getprotected set

function to calculate position of result mesh points if the function isn't set, a linear positioner will be used note: this function is called in parallel from different threads


The documentation for this class was generated from the following file: