Static Public Member Functions | |
| static auto | new () -> meshlib::Owned< meshlib::nesting::BoxNestingOptions > |
| static auto | construct_from (allow3dNesting:bool, allowRotation:bool, volumeBasedOrder:bool, checkLessCombinations:bool, iterationLimit:core::ffi::c_int, priorityMetric:&meshlib::std_shared_ptr_MR_Nesting_IBoxNestingPriority, expansionFactor:Option<&meshlib::Vector3f >, preNestedVolumes:Option<&meshlib::std_vector_MR_Box3f >, additinalSocketCorners:Option<&meshlib::std_vector_MR_Nesting_BoxNestingCorner >, cb:&meshlib::std_function_bool_from_float) -> meshlib::Owned< meshlib::nesting::BoxNestingOptions > |
| static auto | construct_from_another (_other:&meshlib::nesting::BoxNestingOptions) -> meshlib::Owned< meshlib::nesting::BoxNestingOptions > |
| Static Public Member Functions inherited from meshlib::CppClass | |
| static void | destroy (ptr:*mut Self) |
| Static Public Member Functions inherited from meshlib::CppCopy | |
| static auto | copy (ptr:*const Self) -> *mut Self |
Generated from class MR::Nesting::BoxNestingOptions.
Generated from class MR::Nesting::BoxNestingOptions. Heap-allocated instances are held in Owned<BoxNestingOptions>.
| auto meshlib::nesting::BoxNestingOptions::additinal_socket_corners | ( | ) | const -> *const *const meshlib::ffi::MR_std_vector_MR_Nesting_BoxNestingCorner |
user might force these sockets to be considered as corners for placing candidates Returns a pointer to a member variable of class MR::Nesting::BoxNestingOptions named additinalSocketCorners.
Calls MR_Nesting_BoxNestingOptions_Get_additinalSocketCorners(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.
| auto meshlib::nesting::BoxNestingOptions::additinal_socket_corners_mut | ( | ) | -> *mut *const meshlib::ffi::MR_std_vector_MR_Nesting_BoxNestingCorner |
user might force these sockets to be considered as corners for placing candidates Returns a mutable pointer to a member variable of class MR::Nesting::BoxNestingOptions named additinalSocketCorners.
Calls MR_Nesting_BoxNestingOptions_GetMutable_additinalSocketCorners(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.
| auto meshlib::nesting::BoxNestingOptions::allow3d_nesting | ( | ) | const -> &bool |
if true allows placing objects over the bottom plane Returns a pointer to a member variable of class MR::Nesting::BoxNestingOptions named allow3dNesting.
Calls MR_Nesting_BoxNestingOptions_Get_allow3dNesting(). The reference to this object might be preserved as the return value.
| auto meshlib::nesting::BoxNestingOptions::allow3d_nesting_mut | ( | ) | -> &mut bool |
if true allows placing objects over the bottom plane Returns a mutable pointer to a member variable of class MR::Nesting::BoxNestingOptions named allow3dNesting.
Calls MR_Nesting_BoxNestingOptions_GetMutable_allow3dNesting(). The reference to this object might be preserved as the return value.
| auto meshlib::nesting::BoxNestingOptions::allow_rotation | ( | ) | const -> &bool |
set false to keep original XY orientation Returns a pointer to a member variable of class MR::Nesting::BoxNestingOptions named allowRotation.
Calls MR_Nesting_BoxNestingOptions_Get_allowRotation(). The reference to this object might be preserved as the return value.
| auto meshlib::nesting::BoxNestingOptions::allow_rotation_mut | ( | ) | -> &mut bool |
set false to keep original XY orientation Returns a mutable pointer to a member variable of class MR::Nesting::BoxNestingOptions named allowRotation.
Calls MR_Nesting_BoxNestingOptions_GetMutable_allowRotation(). The reference to this object might be preserved as the return value.
| auto meshlib::nesting::BoxNestingOptions::assign_from_another | ( | _other:&meshlib::nesting::BoxNestingOptions | ) | -> &mut meshlib::nesting::BoxNestingOptions |
Generated from method MR::Nesting::BoxNestingOptions::operator=.
Calls MR_Nesting_BoxNestingOptions_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.
| auto meshlib::nesting::BoxNestingOptions::cb | ( | ) | const -> &meshlib::std_function_bool_from_float |
callback indicating progress of the nesting Returns a pointer to a member variable of class MR::Nesting::BoxNestingOptions named cb.
Calls MR_Nesting_BoxNestingOptions_Get_cb(). The reference to this object might be preserved as the return value.
| auto meshlib::nesting::BoxNestingOptions::cb_mut | ( | ) | -> &mut meshlib::std_function_bool_from_float |
callback indicating progress of the nesting Returns a mutable pointer to a member variable of class MR::Nesting::BoxNestingOptions named cb.
Calls MR_Nesting_BoxNestingOptions_GetMutable_cb(). The reference to this object might be preserved as the return value.
| auto meshlib::nesting::BoxNestingOptions::check_less_combinations | ( | ) | const -> &bool |
reduces nesting candidate options for speedup Returns a pointer to a member variable of class MR::Nesting::BoxNestingOptions named checkLessCombinations.
Calls MR_Nesting_BoxNestingOptions_Get_checkLessCombinations(). The reference to this object might be preserved as the return value.
| auto meshlib::nesting::BoxNestingOptions::check_less_combinations_mut | ( | ) | -> &mut bool |
reduces nesting candidate options for speedup Returns a mutable pointer to a member variable of class MR::Nesting::BoxNestingOptions named checkLessCombinations.
Calls MR_Nesting_BoxNestingOptions_GetMutable_checkLessCombinations(). The reference to this object might be preserved as the return value.
|
static |
Constructs MR::Nesting::BoxNestingOptions elementwise.
Calls MR_Nesting_BoxNestingOptions_ConstructFrom(). The reference to the parameter priorityMetric might be preserved in the constructed object. The reference to the parameter expansionFactor might be preserved in the constructed object. The reference to the parameter preNestedVolumes might be preserved in the constructed object. The reference to the parameter additinalSocketCorners might be preserved in the constructed object. The reference to the parameter cb might be preserved in the constructed object.
|
static |
Generated from constructor MR::Nesting::BoxNestingOptions::BoxNestingOptions.
Calls MR_Nesting_BoxNestingOptions_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| auto meshlib::nesting::BoxNestingOptions::expansion_factor | ( | ) | const -> *const *const meshlib::Vector3f |
optional input expansion of boxes (useful to compensate shrinkage of material) Returns a pointer to a member variable of class MR::Nesting::BoxNestingOptions named expansionFactor.
Calls MR_Nesting_BoxNestingOptions_Get_expansionFactor(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.
| auto meshlib::nesting::BoxNestingOptions::expansion_factor_mut | ( | ) | -> *mut *const meshlib::Vector3f |
optional input expansion of boxes (useful to compensate shrinkage of material) Returns a mutable pointer to a member variable of class MR::Nesting::BoxNestingOptions named expansionFactor.
Calls MR_Nesting_BoxNestingOptions_GetMutable_expansionFactor(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.
| auto meshlib::nesting::BoxNestingOptions::iteration_limit | ( | ) | const -> &core::ffi::c_int |
limit maximum number of tries, not to freeze for too long in this function Returns a pointer to a member variable of class MR::Nesting::BoxNestingOptions named iterationLimit.
Calls MR_Nesting_BoxNestingOptions_Get_iterationLimit(). The reference to this object might be preserved as the return value.
| auto meshlib::nesting::BoxNestingOptions::iteration_limit_mut | ( | ) | -> &mut core::ffi::c_int |
limit maximum number of tries, not to freeze for too long in this function Returns a mutable pointer to a member variable of class MR::Nesting::BoxNestingOptions named iterationLimit.
Calls MR_Nesting_BoxNestingOptions_GetMutable_iterationLimit(). The reference to this object might be preserved as the return value.
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_Nesting_BoxNestingOptions_DefaultConstruct().
| auto meshlib::nesting::BoxNestingOptions::pre_nested_volumes | ( | ) | const -> *const *const meshlib::ffi::MR_std_vector_MR_Box3f |
if not-nullptr contains boxes that are fixed in the nest and should not be intersected by floating (input) meshes Returns a pointer to a member variable of class MR::Nesting::BoxNestingOptions named preNestedVolumes.
Calls MR_Nesting_BoxNestingOptions_Get_preNestedVolumes(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.
| auto meshlib::nesting::BoxNestingOptions::pre_nested_volumes_mut | ( | ) | -> *mut *const meshlib::ffi::MR_std_vector_MR_Box3f |
if not-nullptr contains boxes that are fixed in the nest and should not be intersected by floating (input) meshes Returns a mutable pointer to a member variable of class MR::Nesting::BoxNestingOptions named preNestedVolumes.
Calls MR_Nesting_BoxNestingOptions_GetMutable_preNestedVolumes(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.
| auto meshlib::nesting::BoxNestingOptions::priority_metric | ( | ) | const -> &meshlib::std_shared_ptr_MR_Nesting_IBoxNestingPriority |
metric to calculate priority for candidates placement if not set - default getNestPostionMinPriorityMetric is used Returns a pointer to a member variable of class MR::Nesting::BoxNestingOptions named priorityMetric.
Calls MR_Nesting_BoxNestingOptions_Get_priorityMetric(). The reference to this object might be preserved as the return value.
| auto meshlib::nesting::BoxNestingOptions::priority_metric_mut | ( | ) | -> &mut meshlib::std_shared_ptr_MR_Nesting_IBoxNestingPriority |
metric to calculate priority for candidates placement if not set - default getNestPostionMinPriorityMetric is used Returns a mutable pointer to a member variable of class MR::Nesting::BoxNestingOptions named priorityMetric.
Calls MR_Nesting_BoxNestingOptions_GetMutable_priorityMetric(). The reference to this object might be preserved as the return value.
| void meshlib::nesting::BoxNestingOptions::set_additinal_socket_corners | ( | value:Option<&meshlib::std_vector_MR_Nesting_BoxNestingCorner > | ) |
user might force these sockets to be considered as corners for placing candidates Modifies a member variable of class MR::Nesting::BoxNestingOptions named additinalSocketCorners.
Calls MR_Nesting_BoxNestingOptions_Set_additinalSocketCorners(). The reference to the parameter value might be preserved in this object in element additinalSocketCorners.
| void meshlib::nesting::BoxNestingOptions::set_allow3d_nesting | ( | value:bool | ) |
if true allows placing objects over the bottom plane Modifies a member variable of class MR::Nesting::BoxNestingOptions named allow3dNesting.
Calls MR_Nesting_BoxNestingOptions_Set_allow3dNesting().
| void meshlib::nesting::BoxNestingOptions::set_allow_rotation | ( | value:bool | ) |
set false to keep original XY orientation Modifies a member variable of class MR::Nesting::BoxNestingOptions named allowRotation.
Calls MR_Nesting_BoxNestingOptions_Set_allowRotation().
| void meshlib::nesting::BoxNestingOptions::set_cb | ( | value:&meshlib::std_function_bool_from_float | ) |
callback indicating progress of the nesting Modifies a member variable of class MR::Nesting::BoxNestingOptions named cb.
Calls MR_Nesting_BoxNestingOptions_Set_cb(). The reference to the parameter value might be preserved in this object in element cb.
| void meshlib::nesting::BoxNestingOptions::set_check_less_combinations | ( | value:bool | ) |
reduces nesting candidate options for speedup Modifies a member variable of class MR::Nesting::BoxNestingOptions named checkLessCombinations.
Calls MR_Nesting_BoxNestingOptions_Set_checkLessCombinations().
| void meshlib::nesting::BoxNestingOptions::set_expansion_factor | ( | value:Option<&meshlib::Vector3f > | ) |
optional input expansion of boxes (useful to compensate shrinkage of material) Modifies a member variable of class MR::Nesting::BoxNestingOptions named expansionFactor.
Calls MR_Nesting_BoxNestingOptions_Set_expansionFactor(). The reference to the parameter value might be preserved in this object in element expansionFactor.
| void meshlib::nesting::BoxNestingOptions::set_iteration_limit | ( | value:core::ffi::c_int | ) |
limit maximum number of tries, not to freeze for too long in this function Modifies a member variable of class MR::Nesting::BoxNestingOptions named iterationLimit.
Calls MR_Nesting_BoxNestingOptions_Set_iterationLimit().
| void meshlib::nesting::BoxNestingOptions::set_pre_nested_volumes | ( | value:Option<&meshlib::std_vector_MR_Box3f > | ) |
if not-nullptr contains boxes that are fixed in the nest and should not be intersected by floating (input) meshes Modifies a member variable of class MR::Nesting::BoxNestingOptions named preNestedVolumes.
Calls MR_Nesting_BoxNestingOptions_Set_preNestedVolumes(). The reference to the parameter value might be preserved in this object in element preNestedVolumes.
| void meshlib::nesting::BoxNestingOptions::set_priority_metric | ( | value:&meshlib::std_shared_ptr_MR_Nesting_IBoxNestingPriority | ) |
metric to calculate priority for candidates placement if not set - default getNestPostionMinPriorityMetric is used Modifies a member variable of class MR::Nesting::BoxNestingOptions named priorityMetric.
Calls MR_Nesting_BoxNestingOptions_Set_priorityMetric(). The reference to the parameter value might be preserved in this object in element priorityMetric.
| void meshlib::nesting::BoxNestingOptions::set_volume_based_order | ( | value:bool | ) |
if true - nests objects in the order of decreasing volume, otherwise nest in the input order Modifies a member variable of class MR::Nesting::BoxNestingOptions named volumeBasedOrder.
Calls MR_Nesting_BoxNestingOptions_Set_volumeBasedOrder().
| auto meshlib::nesting::BoxNestingOptions::volume_based_order | ( | ) | const -> &bool |
if true - nests objects in the order of decreasing volume, otherwise nest in the input order Returns a pointer to a member variable of class MR::Nesting::BoxNestingOptions named volumeBasedOrder.
Calls MR_Nesting_BoxNestingOptions_Get_volumeBasedOrder(). The reference to this object might be preserved as the return value.
| auto meshlib::nesting::BoxNestingOptions::volume_based_order_mut | ( | ) | -> &mut bool |
if true - nests objects in the order of decreasing volume, otherwise nest in the input order Returns a mutable pointer to a member variable of class MR::Nesting::BoxNestingOptions named volumeBasedOrder.
Calls MR_Nesting_BoxNestingOptions_GetMutable_volumeBasedOrder(). The reference to this object might be preserved as the return value.