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_BoolFuncFromFloat cb, float iso, bool lessInside, MR.Vector_MRVoxelId_MRFaceId? outVoxelPerFaceMap, MR.Std._ByValue_Function_MRVector3fFuncFromConstMRVector3fRefConstMRVector3fRefFloatFloatFloat positioner, int maxVertices, MR.MarchingCubesParams.CachingMode cachingMode, MR.Std._ByValue_Function_VoidFunc freeVolume) |
Constructs MR.MarchingCubesParams elementwise. | |
| unsafe | Const_MarchingCubesParams (MR._ByValue_MarchingCubesParams _other) |
Generated from constructor MR.MarchingCubesParams.MarchingCubesParams. | |
Protected Member Functions | |
| virtual unsafe void | Dispose (bool disposing) |
Properties | |
| unsafe ref readonly MR.Vector3f | origin [get] |
| origin point of voxels box in 3D space with output mesh | |
| unsafe MR.Std.Const_Function_BoolFuncFromFloat | cb [get] |
| 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_MRVector3fFuncFromConstMRVector3fRefConstMRVector3fRefFloatFloatFloat | positioner [get] |
| 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_VoidFunc | freeVolume [get] |
| this optional function is called when volume is no longer needed to deallocate it and reduce peak memory consumption | |
Properties inherited from MR.Misc.Object< Const_MarchingCubesParams > | |
| 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_MarchingCubesParams > | |
| bool | _IsOwningVal |
Generated from class MR.MarchingCubesParams. This is the const half of the class.
| enum MR.Const_MarchingCubesParams.CachingMode : int |
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 |
|
get |
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