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

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

+ Inheritance diagram for MR.SharpOffsetParameters:

Public Member Functions

unsafe SharpOffsetParameters ()
 Constructs an empty (default-constructed) instance.
 
unsafe SharpOffsetParameters (MR._ByValue_SharpOffsetParameters _other)
 Generated from constructor MR.SharpOffsetParameters.SharpOffsetParameters.
 
 SharpOffsetParameters (Const_SharpOffsetParameters _other)
 Generated from constructor MR.SharpOffsetParameters.SharpOffsetParameters.
 
 SharpOffsetParameters (SharpOffsetParameters _other)
 Generated from constructor MR.SharpOffsetParameters.SharpOffsetParameters.
 
unsafe MR.SharpOffsetParameters assign (MR._ByValue_SharpOffsetParameters _other)
 Generated from method MR.SharpOffsetParameters.operator=.
 

Static Public Member Functions

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

Properties

new unsafe MR.? UndirectedEdgeBitSet outSharpEdges [get, set]
 if non-null then created sharp edges will be saved here
 
new unsafe ref float minNewVertDev [get]
 minimal surface deviation to introduce new vertex in a voxel, measured in voxelSize
 
new unsafe ref float maxNewRank2VertDev [get]
 maximal surface deviation to introduce new rank 2 vertex (on intersection of 2 planes), measured in voxelSize
 
new unsafe ref float maxNewRank3VertDev [get]
 maximal surface deviation to introduce new rank 3 vertex (on intersection of 3 planes), measured in voxelSize
 
new unsafe ref float maxOldVertPosCorrection [get]
 
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.SharpOffsetParameters. Base classes: Direct: (non-virtual) MR.OffsetParameters Indirect: (non-virtual) MR.BaseShellParameters Derived classes: Direct: (non-virtual) MR.GeneralOffsetParameters This is the non-const half of the class.

Constructor & Destructor Documentation

◆ SharpOffsetParameters() [1/4]

unsafe MR.SharpOffsetParameters.SharpOffsetParameters ( )
inline

Constructs an empty (default-constructed) instance.

◆ SharpOffsetParameters() [2/4]

unsafe MR.SharpOffsetParameters.SharpOffsetParameters ( MR._ByValue_SharpOffsetParameters _other)
inline

Generated from constructor MR.SharpOffsetParameters.SharpOffsetParameters.

◆ SharpOffsetParameters() [3/4]

MR.SharpOffsetParameters.SharpOffsetParameters ( Const_SharpOffsetParameters _other)
inline

Generated from constructor MR.SharpOffsetParameters.SharpOffsetParameters.

◆ SharpOffsetParameters() [4/4]

MR.SharpOffsetParameters.SharpOffsetParameters ( SharpOffsetParameters _other)
inline

Generated from constructor MR.SharpOffsetParameters.SharpOffsetParameters.

Member Function Documentation

◆ assign()

unsafe MR.SharpOffsetParameters MR.SharpOffsetParameters.assign ( MR._ByValue_SharpOffsetParameters _other)
inline

Generated from method MR.SharpOffsetParameters.operator=.

◆ operator MR.BaseShellParameters()

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

◆ operator MR.OffsetParameters()

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

Property Documentation

◆ callBack

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

Progress callback.

◆ closeHolesInHoleWindingNumber

new unsafe ref bool MR.SharpOffsetParameters.closeHolesInHoleWindingNumber
get

whether to construct closed mesh in signMode = SignDetectionModeShort.HoleWindingNumber

◆ fwn

new unsafe MR.IFastWindingNumber MR.SharpOffsetParameters.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)

◆ maxNewRank2VertDev

new unsafe ref float MR.SharpOffsetParameters.maxNewRank2VertDev
get

maximal surface deviation to introduce new rank 2 vertex (on intersection of 2 planes), measured in voxelSize

◆ maxNewRank3VertDev

new unsafe ref float MR.SharpOffsetParameters.maxNewRank3VertDev
get

maximal surface deviation to introduce new rank 3 vertex (on intersection of 3 planes), measured in voxelSize

◆ maxOldVertPosCorrection

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

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

◆ minNewVertDev

new unsafe ref float MR.SharpOffsetParameters.minNewVertDev
get

minimal surface deviation to introduce new vertex in a voxel, measured in voxelSize

◆ outSharpEdges

new unsafe MR.? UndirectedEdgeBitSet MR.SharpOffsetParameters.outSharpEdges
getset

if non-null then created sharp edges will be saved here

◆ signDetectionMode

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

determines the method to compute distance sign

◆ voxelSize

new unsafe ref float MR.SharpOffsetParameters.voxelSize
get

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

◆ windingNumberBeta

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