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

allows the user to select in the parameters which offset algorithm to call Generated from class MR.GeneralOffsetParameters. Base classes: Direct: (non-virtual) MR.SharpOffsetParameters Indirect: (non-virtual) MR.BaseShellParameters MR.OffsetParameters This is the const half of the class. More...

+ Inheritance diagram for MR.Const_GeneralOffsetParameters:

Classes

struct  _Underlying
 

Public Member Functions

virtual void Dispose ()
 
unsafe Const_GeneralOffsetParameters ()
 Constructs an empty (default-constructed) instance.
 
unsafe Const_GeneralOffsetParameters (MR._ByValue_GeneralOffsetParameters _other)
 Generated from constructor MR.GeneralOffsetParameters.GeneralOffsetParameters.
 

Static Public Member Functions

static unsafe implicit operator MR.Const_BaseShellParameters (Const_GeneralOffsetParameters self)
 
static unsafe implicit operator MR.Const_OffsetParameters (Const_GeneralOffsetParameters self)
 
static unsafe implicit operator MR.Const_SharpOffsetParameters (Const_GeneralOffsetParameters self)
 

Protected Member Functions

virtual unsafe void Dispose (bool disposing)
 

Properties

unsafe MR.OffsetMode mode [get]
 
unsafe MR.? UndirectedEdgeBitSet outSharpEdges [get]
 if non-null then created sharp edges will be saved here
 
unsafe float minNewVertDev [get]
 minimal surface deviation to introduce new vertex in a voxel, measured in voxelSize
 
unsafe float maxNewRank2VertDev [get]
 maximal surface deviation to introduce new rank 2 vertex (on intersection of 2 planes), measured in voxelSize
 
unsafe float maxNewRank3VertDev [get]
 maximal surface deviation to introduce new rank 3 vertex (on intersection of 3 planes), measured in voxelSize
 
unsafe float maxOldVertPosCorrection [get]
 
unsafe MR.SignDetectionMode signDetectionMode [get]
 determines the method to compute distance sign
 
unsafe bool closeHolesInHoleWindingNumber [get]
 whether to construct closed mesh in signMode = SignDetectionModeShort.HoleWindingNumber
 
unsafe float windingNumberThreshold [get]
 
unsafe float windingNumberBeta [get]
 
unsafe MR.Const_IFastWindingNumber fwn [get]
 
unsafe bool memoryEfficient [get]
 
unsafe float voxelSize [get]
 
unsafe MR.Std.Const_Function_BoolFuncFromFloat callBack [get]
 Progress callback.
 
- Properties inherited from MR.Misc.Object< Const_GeneralOffsetParameters >
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_GeneralOffsetParameters >
bool _IsOwningVal
 

Detailed Description

allows the user to select in the parameters which offset algorithm to call Generated from class MR.GeneralOffsetParameters. Base classes: Direct: (non-virtual) MR.SharpOffsetParameters Indirect: (non-virtual) MR.BaseShellParameters MR.OffsetParameters This is the const half of the class.

Property Documentation

◆ fwn

unsafe MR.Const_IFastWindingNumber MR.Const_GeneralOffsetParameters.fwn
get

defines particular implementation of IFastWindingNumber interface that will compute windings. If it is not specified, default FastWindingNumber is used this only used if signDetectionMode == SignDetectionMode.HoleWindingRule, otherwise it is ignored providing this will disable memoryEfficient (as if memoryEfficient == false)

◆ maxOldVertPosCorrection

unsafe float MR.Const_GeneralOffsetParameters.maxOldVertPosCorrection
get

correct positions of the input vertices using reference mesh by not more than this distance, measured in voxelSize; big correction can be wrong and result from self-intersections in the reference mesh

◆ memoryEfficient

unsafe bool MR.Const_GeneralOffsetParameters.memoryEfficient
get

use FunctionVolume for voxel grid representation:

  • memory consumption for voxel storage is approx. (dims.z / (2 * thread_count)) lesser
  • computations are about 15% slower (because some z-layers are computed twice) this setting is ignored (as if memoryEfficient == false) if a) signDetectionMode = SignDetectionMode.OpenVDB, or b) fwn is provided (CUDA computations require full memory storage) used only by mcOffsetMesh and sharpOffsetMesh methods

◆ voxelSize

unsafe float MR.Const_GeneralOffsetParameters.voxelSize
get

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

◆ windingNumberBeta

unsafe float MR.Const_GeneralOffsetParameters.windingNumberBeta
get

only for SignDetectionMode.HoleWindingRule: determines the precision of fast approximation: the more the better, minimum value is 1

◆ windingNumberThreshold

unsafe float MR.Const_GeneralOffsetParameters.windingNumberThreshold
get

only for SignDetectionMode.HoleWindingRule: 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: