MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ConstOffsetParameters Class Reference
Inheritance diagram for mrmeshpy.ConstOffsetParameters:

Public Member Functions

 __init__ (self, *args, **kwargs)
bool closeHolesInHoleWindingNumber (self)
IFastWindingNumber fwn (self)
bool memoryEfficient (self)
SignDetectionMode signDetectionMode (self)
float windingNumberBeta (self)
float windingNumberThreshold (self)
Public Member Functions inherited from mrmeshpy.ConstBaseShellParameters
 __init__ (self, *args, **kwargs)
Const_func_bool_from_float callBack (self)
float voxelSize (self)

Static Protected Attributes

typing _offsetof_closeHolesInHoleWindingNumber = 44
typing _offsetof_fwn = 56
typing _offsetof_memoryEfficient = 72
typing _offsetof_signDetectionMode = 40
typing _offsetof_windingNumberBeta = 52
typing _offsetof_windingNumberThreshold = 48
Static Protected Attributes inherited from mrmeshpy.ConstBaseShellParameters
typing _offsetof_callBack = 8
typing _offsetof_voxelSize = 0

Detailed Description

Generated from:  MR::OffsetParameters

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstOffsetParameters.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstOffsetParameters) -> None

2. __init__(self: meshlib.mrmeshpy.ConstOffsetParameters, arg0: meshlib.mrmeshpy.ConstOffsetParameters) -> None

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.ConstOffsetParameters, : meshlib.mrmeshpy.ConstOffsetParameters) -> None

Member Function Documentation

◆ closeHolesInHoleWindingNumber()

bool mrmeshpy.ConstOffsetParameters.closeHolesInHoleWindingNumber ( self)
whether to construct closed mesh in signMode = SignDetectionModeShort::HoleWindingNumber

Reimplemented in mrmeshpy.OffsetParameters, and mrmeshpy.OffsetParameters.

◆ fwn()

IFastWindingNumber mrmeshpy.ConstOffsetParameters.fwn ( self)
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)

Reimplemented in mrmeshpy.OffsetParameters, and mrmeshpy.OffsetParameters.

◆ memoryEfficient()

bool mrmeshpy.ConstOffsetParameters.memoryEfficient ( self)
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) \\ref fwn is provided (CUDA computations require full memory storage)
used only by \\ref mcOffsetMesh and \\ref sharpOffsetMesh methods

Reimplemented in mrmeshpy.OffsetParameters, and mrmeshpy.OffsetParameters.

◆ signDetectionMode()

SignDetectionMode mrmeshpy.ConstOffsetParameters.signDetectionMode ( self)
determines the method to compute distance sign;
\\ref offsetMesh implementing OffsetMode::Smooth supports only Unsigned, OpenVDB and HoleWindingRule here

Reimplemented in mrmeshpy.OffsetParameters, and mrmeshpy.OffsetParameters.

◆ windingNumberBeta()

float mrmeshpy.ConstOffsetParameters.windingNumberBeta ( self)
only for SignDetectionMode::HoleWindingRule:
determines the precision of fast approximation: the more the better, minimum value is 1

Reimplemented in mrmeshpy.OffsetParameters, and mrmeshpy.OffsetParameters.

◆ windingNumberThreshold()

float mrmeshpy.ConstOffsetParameters.windingNumberThreshold ( self)
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

Reimplemented in mrmeshpy.OffsetParameters, and mrmeshpy.OffsetParameters.

Member Data Documentation

◆ _offsetof_closeHolesInHoleWindingNumber

typing mrmeshpy.ConstOffsetParameters._offsetof_closeHolesInHoleWindingNumber = 44
staticprotected

◆ _offsetof_fwn

typing mrmeshpy.ConstOffsetParameters._offsetof_fwn = 56
staticprotected

◆ _offsetof_memoryEfficient

typing mrmeshpy.ConstOffsetParameters._offsetof_memoryEfficient = 72
staticprotected

◆ _offsetof_signDetectionMode

typing mrmeshpy.ConstOffsetParameters._offsetof_signDetectionMode = 40
staticprotected

◆ _offsetof_windingNumberBeta

typing mrmeshpy.ConstOffsetParameters._offsetof_windingNumberBeta = 52
staticprotected

◆ _offsetof_windingNumberThreshold

typing mrmeshpy.ConstOffsetParameters._offsetof_windingNumberThreshold = 48
staticprotected

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