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

Public Member Functions

 __init__ (self, *args, **kwargs)
std_vector_Nesting_BoxNestingCorner additinalSocketCorners (self)
bool allow3dNesting (self)
bool allowRotation (self)
Const_func_bool_from_float cb (self)
bool checkLessCombinations (self)
Vector3f expansionFactor (self)
int iterationLimit (self)
std_vector_Box_Vector3_float preNestedVolumes (self)
Nesting.IBoxNestingPriority priorityMetric (self)
bool volumeBasedOrder (self)

Static Protected Attributes

typing _offsetof_additinalSocketCorners = 40
typing _offsetof_allow3dNesting = 0
typing _offsetof_allowRotation = 1
typing _offsetof_cb = 48
typing _offsetof_checkLessCombinations = 3
typing _offsetof_expansionFactor = 24
typing _offsetof_iterationLimit = 4
typing _offsetof_preNestedVolumes = 32
typing _offsetof_priorityMetric = 8
typing _offsetof_volumeBasedOrder = 2

Detailed Description

Generated from:  MR::Nesting::BoxNestingOptions

Constructor & Destructor Documentation

◆ __init__()

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

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

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

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.Nesting.ConstBoxNestingOptions, allow3dNesting: bool, allowRotation: bool, volumeBasedOrder: bool, checkLessCombinations: bool, iterationLimit: int, priorityMetric: meshlib.mrmeshpy.Nesting.IBoxNestingPriority, expansionFactor: meshlib.mrmeshpy.ConstVector3f, preNestedVolumes: meshlib.mrmeshpy.Const_std_vector_Box_Vector3_float, additinalSocketCorners: meshlib.mrmeshpy.Const_std_vector_Nesting_BoxNestingCorner, cb: meshlib.mrmeshpy.Const_func_bool_from_float) -> None

Implicit aggregate constructor.

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

Member Function Documentation

◆ additinalSocketCorners()

std_vector_Nesting_BoxNestingCorner mrmeshpy.Nesting.ConstBoxNestingOptions.additinalSocketCorners ( self)
user might force these sockets to be considered as corners for placing candidates

Reimplemented in mrmeshpy.Nesting.BoxNestingOptions, and mrmeshpy.Nesting.BoxNestingOptions.

◆ allow3dNesting()

bool mrmeshpy.Nesting.ConstBoxNestingOptions.allow3dNesting ( self)
if true allows placing objects over the bottom plane

Reimplemented in mrmeshpy.Nesting.BoxNestingOptions, and mrmeshpy.Nesting.BoxNestingOptions.

◆ allowRotation()

bool mrmeshpy.Nesting.ConstBoxNestingOptions.allowRotation ( self)
set false to keep original XY orientation

Reimplemented in mrmeshpy.Nesting.BoxNestingOptions, and mrmeshpy.Nesting.BoxNestingOptions.

◆ cb()

Const_func_bool_from_float mrmeshpy.Nesting.ConstBoxNestingOptions.cb ( self)
callback indicating progress of the nesting

Reimplemented in mrmeshpy.Nesting.BoxNestingOptions, and mrmeshpy.Nesting.BoxNestingOptions.

◆ checkLessCombinations()

bool mrmeshpy.Nesting.ConstBoxNestingOptions.checkLessCombinations ( self)
reduces nesting candidate options for speedup

Reimplemented in mrmeshpy.Nesting.BoxNestingOptions, and mrmeshpy.Nesting.BoxNestingOptions.

◆ expansionFactor()

Vector3f mrmeshpy.Nesting.ConstBoxNestingOptions.expansionFactor ( self)
optional input expansion of boxes (useful to compensate shrinkage of material)

Reimplemented in mrmeshpy.Nesting.BoxNestingOptions, and mrmeshpy.Nesting.BoxNestingOptions.

◆ iterationLimit()

int mrmeshpy.Nesting.ConstBoxNestingOptions.iterationLimit ( self)
limit maximum number of tries, not to freeze for too long in this function

Reimplemented in mrmeshpy.Nesting.BoxNestingOptions, and mrmeshpy.Nesting.BoxNestingOptions.

◆ preNestedVolumes()

std_vector_Box_Vector3_float mrmeshpy.Nesting.ConstBoxNestingOptions.preNestedVolumes ( self)
if not-nullptr contains boxes that are fixed in the nest and should not be intersected by floating (input) meshes

Reimplemented in mrmeshpy.Nesting.BoxNestingOptions, and mrmeshpy.Nesting.BoxNestingOptions.

◆ priorityMetric()

Nesting.IBoxNestingPriority mrmeshpy.Nesting.ConstBoxNestingOptions.priorityMetric ( self)
metric to calculate priority for candidates placement
if not set - default `getNestPostionMinPriorityMetric` is used

Reimplemented in mrmeshpy.Nesting.BoxNestingOptions, and mrmeshpy.Nesting.BoxNestingOptions.

◆ volumeBasedOrder()

bool mrmeshpy.Nesting.ConstBoxNestingOptions.volumeBasedOrder ( self)
if true - nests objects in the order of decreasing volume, otherwise nest in the input order

Reimplemented in mrmeshpy.Nesting.BoxNestingOptions, and mrmeshpy.Nesting.BoxNestingOptions.

Member Data Documentation

◆ _offsetof_additinalSocketCorners

typing mrmeshpy.Nesting.ConstBoxNestingOptions._offsetof_additinalSocketCorners = 40
staticprotected

◆ _offsetof_allow3dNesting

typing mrmeshpy.Nesting.ConstBoxNestingOptions._offsetof_allow3dNesting = 0
staticprotected

◆ _offsetof_allowRotation

typing mrmeshpy.Nesting.ConstBoxNestingOptions._offsetof_allowRotation = 1
staticprotected

◆ _offsetof_cb

typing mrmeshpy.Nesting.ConstBoxNestingOptions._offsetof_cb = 48
staticprotected

◆ _offsetof_checkLessCombinations

typing mrmeshpy.Nesting.ConstBoxNestingOptions._offsetof_checkLessCombinations = 3
staticprotected

◆ _offsetof_expansionFactor

typing mrmeshpy.Nesting.ConstBoxNestingOptions._offsetof_expansionFactor = 24
staticprotected

◆ _offsetof_iterationLimit

typing mrmeshpy.Nesting.ConstBoxNestingOptions._offsetof_iterationLimit = 4
staticprotected

◆ _offsetof_preNestedVolumes

typing mrmeshpy.Nesting.ConstBoxNestingOptions._offsetof_preNestedVolumes = 32
staticprotected

◆ _offsetof_priorityMetric

typing mrmeshpy.Nesting.ConstBoxNestingOptions._offsetof_priorityMetric = 8
staticprotected

◆ _offsetof_volumeBasedOrder

typing mrmeshpy.Nesting.ConstBoxNestingOptions._offsetof_volumeBasedOrder = 2
staticprotected

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