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

Generated from class MR.OffsetParameters. Base classes: Direct: (non-virtual) MR.BaseShellParameters Derived classes: Direct: (non-virtual) MR.SharpOffsetParameters Indirect: (non-virtual) MR.GeneralOffsetParameters This is the non-const half of the class. More...

+ Inheritance diagram for MR.OffsetParameters:

Public Member Functions

unsafe OffsetParameters ()
 Constructs an empty (default-constructed) instance.
 
unsafe OffsetParameters (MR._ByValue_OffsetParameters _other)
 Generated from constructor MR.OffsetParameters.OffsetParameters.
 
 OffsetParameters (Const_OffsetParameters _other)
 Generated from constructor MR.OffsetParameters.OffsetParameters.
 
 OffsetParameters (OffsetParameters _other)
 Generated from constructor MR.OffsetParameters.OffsetParameters.
 
unsafe MR.OffsetParameters assign (MR._ByValue_OffsetParameters _other)
 Generated from method MR.OffsetParameters.operator=.
 

Static Public Member Functions

static unsafe implicit operator MR.BaseShellParameters (OffsetParameters self)
 

Properties

new unsafe ref MR.SignDetectionMode signDetectionMode [get]
 determines the method to compute distance sign
 
new unsafe ref bool closeHolesInHoleWindingNumber [get]
 whether to construct closed mesh in signMode = SignDetectionModeShort.HoleWindingNumber
 
new unsafe ref float windingNumberThreshold [get]
 
new unsafe ref float windingNumberBeta [get]
 
new unsafe MR.IFastWindingNumber fwn [get, protected set]
 
new unsafe ref bool memoryEfficient [get]
 
new unsafe ref float voxelSize [get]
 
new unsafe MR.Std.Function_BoolFuncFromFloat callBack [get, protected set]
 Progress callback.
 

Detailed Description

Generated from class MR.OffsetParameters. Base classes: Direct: (non-virtual) MR.BaseShellParameters Derived classes: Direct: (non-virtual) MR.SharpOffsetParameters Indirect: (non-virtual) MR.GeneralOffsetParameters This is the non-const half of the class.

Constructor & Destructor Documentation

◆ OffsetParameters() [1/4]

unsafe MR.OffsetParameters.OffsetParameters ( )
inline

Constructs an empty (default-constructed) instance.

◆ OffsetParameters() [2/4]

unsafe MR.OffsetParameters.OffsetParameters ( MR._ByValue_OffsetParameters _other)
inline

Generated from constructor MR.OffsetParameters.OffsetParameters.

◆ OffsetParameters() [3/4]

MR.OffsetParameters.OffsetParameters ( Const_OffsetParameters _other)
inline

Generated from constructor MR.OffsetParameters.OffsetParameters.

◆ OffsetParameters() [4/4]

MR.OffsetParameters.OffsetParameters ( OffsetParameters _other)
inline

Generated from constructor MR.OffsetParameters.OffsetParameters.

Member Function Documentation

◆ assign()

unsafe MR.OffsetParameters MR.OffsetParameters.assign ( MR._ByValue_OffsetParameters _other)
inline

Generated from method MR.OffsetParameters.operator=.

◆ operator MR.BaseShellParameters()

static unsafe implicit MR.OffsetParameters.operator MR.BaseShellParameters ( OffsetParameters self)
inlinestatic

Property Documentation

◆ callBack

new unsafe MR.Std.Function_BoolFuncFromFloat MR.OffsetParameters.callBack
getprotected set

Progress callback.

◆ closeHolesInHoleWindingNumber

new unsafe ref bool MR.OffsetParameters.closeHolesInHoleWindingNumber
get

whether to construct closed mesh in signMode = SignDetectionModeShort.HoleWindingNumber

◆ fwn

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

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)

◆ memoryEfficient

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

◆ signDetectionMode

new unsafe ref MR.SignDetectionMode MR.OffsetParameters.signDetectionMode
get

determines the method to compute distance sign

◆ voxelSize

new unsafe ref float MR.OffsetParameters.voxelSize
get

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

◆ windingNumberBeta

new unsafe ref float MR.OffsetParameters.windingNumberBeta
get

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

◆ windingNumberThreshold

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