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

Public Member Functions

None __init__ (self)
None __init__ (self, Nesting.ConstBoxNestingOptions arg0)
None __init__ (self, bool allow3dNesting, bool allowRotation, bool volumeBasedOrder, bool checkLessCombinations, int iterationLimit, Nesting.IBoxNestingPriority priorityMetric, ConstVector3f expansionFactor, Const_std_vector_Box_Vector3_float preNestedVolumes, Const_std_vector_Nesting_BoxNestingCorner additinalSocketCorners, Const_func_bool_from_float cb)
Nesting.BoxNestingOptions assign (self, Nesting.ConstBoxNestingOptions other)
std_vector_Nesting_BoxNestingCorner additinalSocketCorners (self)
None additinalSocketCorners (self, Const_std_vector_Nesting_BoxNestingCorner arg1)
bool allow3dNesting (self)
None allow3dNesting (self, bool arg1)
bool allowRotation (self)
None allowRotation (self, bool arg1)
func_bool_from_float cb (self)
None cb (self, Const_func_bool_from_float arg1)
bool checkLessCombinations (self)
None checkLessCombinations (self, bool arg1)
Vector3f expansionFactor (self)
None expansionFactor (self, ConstVector3f arg1)
int iterationLimit (self)
None iterationLimit (self, int arg1)
std_vector_Box_Vector3_float preNestedVolumes (self)
None preNestedVolumes (self, Const_std_vector_Box_Vector3_float arg1)
Nesting.IBoxNestingPriority priorityMetric (self)
None priorityMetric (self, Nesting.IBoxNestingPriority arg1)
bool volumeBasedOrder (self)
None volumeBasedOrder (self, bool arg1)
Public Member Functions inherited from mrmeshpy.Nesting.ConstBoxNestingOptions
 __init__ (self, *args, **kwargs)

Static Public Member Functions

None __init__ (*args, **kwargs)

Additional Inherited Members

Static Protected Attributes inherited from mrmeshpy.Nesting.ConstBoxNestingOptions
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__() [1/4]

None mrmeshpy.Nesting.BoxNestingOptions.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/4]

None mrmeshpy.Nesting.BoxNestingOptions.__init__ ( self)

◆ __init__() [3/4]

None mrmeshpy.Nesting.BoxNestingOptions.__init__ ( self,
Nesting.ConstBoxNestingOptions arg0 )
Implicit copy constructor.

◆ __init__() [4/4]

None mrmeshpy.Nesting.BoxNestingOptions.__init__ ( self,
bool allow3dNesting,
bool allowRotation,
bool volumeBasedOrder,
bool checkLessCombinations,
int iterationLimit,
Nesting.IBoxNestingPriority priorityMetric,
ConstVector3f expansionFactor,
Const_std_vector_Box_Vector3_float preNestedVolumes,
Const_std_vector_Nesting_BoxNestingCorner additinalSocketCorners,
Const_func_bool_from_float cb )
Implicit aggregate constructor.

Member Function Documentation

◆ additinalSocketCorners() [1/2]

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

Reimplemented from mrmeshpy.Nesting.ConstBoxNestingOptions.

◆ additinalSocketCorners() [2/2]

None mrmeshpy.Nesting.BoxNestingOptions.additinalSocketCorners ( self,
Const_std_vector_Nesting_BoxNestingCorner arg1 )
user might force these sockets to be considered as corners for placing candidates

Reimplemented from mrmeshpy.Nesting.ConstBoxNestingOptions.

◆ allow3dNesting() [1/2]

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

Reimplemented from mrmeshpy.Nesting.ConstBoxNestingOptions.

◆ allow3dNesting() [2/2]

None mrmeshpy.Nesting.BoxNestingOptions.allow3dNesting ( self,
bool arg1 )
if true allows placing objects over the bottom plane

Reimplemented from mrmeshpy.Nesting.ConstBoxNestingOptions.

◆ allowRotation() [1/2]

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

Reimplemented from mrmeshpy.Nesting.ConstBoxNestingOptions.

◆ allowRotation() [2/2]

None mrmeshpy.Nesting.BoxNestingOptions.allowRotation ( self,
bool arg1 )
set false to keep original XY orientation

Reimplemented from mrmeshpy.Nesting.ConstBoxNestingOptions.

◆ assign()

Nesting.BoxNestingOptions mrmeshpy.Nesting.BoxNestingOptions.assign ( self,
Nesting.ConstBoxNestingOptions other )

◆ cb() [1/2]

func_bool_from_float mrmeshpy.Nesting.BoxNestingOptions.cb ( self)
callback indicating progress of the nesting

Reimplemented from mrmeshpy.Nesting.ConstBoxNestingOptions.

◆ cb() [2/2]

None mrmeshpy.Nesting.BoxNestingOptions.cb ( self,
Const_func_bool_from_float arg1 )
callback indicating progress of the nesting

Reimplemented from mrmeshpy.Nesting.ConstBoxNestingOptions.

◆ checkLessCombinations() [1/2]

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

Reimplemented from mrmeshpy.Nesting.ConstBoxNestingOptions.

◆ checkLessCombinations() [2/2]

None mrmeshpy.Nesting.BoxNestingOptions.checkLessCombinations ( self,
bool arg1 )
reduces nesting candidate options for speedup

Reimplemented from mrmeshpy.Nesting.ConstBoxNestingOptions.

◆ expansionFactor() [1/2]

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

Reimplemented from mrmeshpy.Nesting.ConstBoxNestingOptions.

◆ expansionFactor() [2/2]

None mrmeshpy.Nesting.BoxNestingOptions.expansionFactor ( self,
ConstVector3f arg1 )
optional input expansion of boxes (useful to compensate shrinkage of material)

Reimplemented from mrmeshpy.Nesting.ConstBoxNestingOptions.

◆ iterationLimit() [1/2]

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

Reimplemented from mrmeshpy.Nesting.ConstBoxNestingOptions.

◆ iterationLimit() [2/2]

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

Reimplemented from mrmeshpy.Nesting.ConstBoxNestingOptions.

◆ preNestedVolumes() [1/2]

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

Reimplemented from mrmeshpy.Nesting.ConstBoxNestingOptions.

◆ preNestedVolumes() [2/2]

None mrmeshpy.Nesting.BoxNestingOptions.preNestedVolumes ( self,
Const_std_vector_Box_Vector3_float arg1 )
if not-nullptr contains boxes that are fixed in the nest and should not be intersected by floating (input) meshes

Reimplemented from mrmeshpy.Nesting.ConstBoxNestingOptions.

◆ priorityMetric() [1/2]

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

Reimplemented from mrmeshpy.Nesting.ConstBoxNestingOptions.

◆ priorityMetric() [2/2]

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

Reimplemented from mrmeshpy.Nesting.ConstBoxNestingOptions.

◆ volumeBasedOrder() [1/2]

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

Reimplemented from mrmeshpy.Nesting.ConstBoxNestingOptions.

◆ volumeBasedOrder() [2/2]

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

Reimplemented from mrmeshpy.Nesting.ConstBoxNestingOptions.


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