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

Public Member Functions

 __init__ (self, *args, **kwargs)
float maxDistRatio (self)
SlicePlane plane (self)
QuarterBit quatersMask (self)
int start (self)
int stop (self)

Static Protected Attributes

typing _offsetof_maxDistRatio = 16
typing _offsetof_plane = 20
typing _offsetof_quatersMask = 24
typing _offsetof_start = 0
typing _offsetof_stop = 8

Detailed Description

Generated from:  MR::VoxelMetricParameters

Parameters for building metric function

Constructor & Destructor Documentation

◆ __init__()

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

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

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

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.ConstVoxelMetricParameters, start: int, stop: int, maxDistRatio: float, plane: meshlib.mrmeshpy.SlicePlane, quatersMask: meshlib.mrmeshpy.QuarterBit) -> None

Implicit aggregate constructor.

4. __init__(self: meshlib.mrmeshpy.ConstVoxelMetricParameters, : meshlib.mrmeshpy.ConstVoxelMetricParameters) -> None

Member Function Documentation

◆ maxDistRatio()

float mrmeshpy.ConstVoxelMetricParameters.maxDistRatio ( self)
max distance ratio: if (dist^2(next,start) + dist^2(next,stop) > maxDistRatio^2*dist^2(start,stop)) - candidate is not processed

Reimplemented in mrmeshpy.VoxelMetricParameters, and mrmeshpy.VoxelMetricParameters.

◆ plane()

SlicePlane mrmeshpy.ConstVoxelMetricParameters.plane ( self)
if not None - builds path in one slice of voxels (make sure start and stop has same main axis coordinate)

Reimplemented in mrmeshpy.VoxelMetricParameters, and mrmeshpy.VoxelMetricParameters.

◆ quatersMask()

QuarterBit mrmeshpy.ConstVoxelMetricParameters.quatersMask ( self)
quarter of building path, if plane is selected, it should be (LeftLeft | LeftRigth) or (RigthLeft | RightRight) or All

Reimplemented in mrmeshpy.VoxelMetricParameters, and mrmeshpy.VoxelMetricParameters.

◆ start()

int mrmeshpy.ConstVoxelMetricParameters.start ( self)
start voxel index

Reimplemented in mrmeshpy.VoxelMetricParameters, and mrmeshpy.VoxelMetricParameters.

◆ stop()

int mrmeshpy.ConstVoxelMetricParameters.stop ( self)
stop voxel index

Reimplemented in mrmeshpy.VoxelMetricParameters, and mrmeshpy.VoxelMetricParameters.

Member Data Documentation

◆ _offsetof_maxDistRatio

typing mrmeshpy.ConstVoxelMetricParameters._offsetof_maxDistRatio = 16
staticprotected

◆ _offsetof_plane

typing mrmeshpy.ConstVoxelMetricParameters._offsetof_plane = 20
staticprotected

◆ _offsetof_quatersMask

typing mrmeshpy.ConstVoxelMetricParameters._offsetof_quatersMask = 24
staticprotected

◆ _offsetof_start

typing mrmeshpy.ConstVoxelMetricParameters._offsetof_start = 0
staticprotected

◆ _offsetof_stop

typing mrmeshpy.ConstVoxelMetricParameters._offsetof_stop = 8
staticprotected

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