MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::nesting::BoxNestingOptions Struct Reference
Inheritance diagram for meshlib::nesting::BoxNestingOptions:

Public Member Functions

auto assign_from_another (_other:&meshlib::nesting::BoxNestingOptions) -> &mut meshlib::nesting::BoxNestingOptions
auto allow3d_nesting () const -> &bool
auto allow3d_nesting_mut () -> &mut bool
void set_allow3d_nesting (value:bool)
auto allow_rotation () const -> &bool
auto allow_rotation_mut () -> &mut bool
void set_allow_rotation (value:bool)
auto volume_based_order () const -> &bool
auto volume_based_order_mut () -> &mut bool
void set_volume_based_order (value:bool)
auto check_less_combinations () const -> &bool
auto check_less_combinations_mut () -> &mut bool
void set_check_less_combinations (value:bool)
auto iteration_limit () const -> &core::ffi::c_int
auto iteration_limit_mut () -> &mut core::ffi::c_int
void set_iteration_limit (value:core::ffi::c_int)
auto priority_metric () const -> &meshlib::std_shared_ptr_MR_Nesting_IBoxNestingPriority
auto priority_metric_mut () -> &mut meshlib::std_shared_ptr_MR_Nesting_IBoxNestingPriority
void set_priority_metric (value:&meshlib::std_shared_ptr_MR_Nesting_IBoxNestingPriority)
auto expansion_factor () const -> *const *const meshlib::Vector3f
auto expansion_factor_mut () -> *mut *const meshlib::Vector3f
void set_expansion_factor (value:Option<&meshlib::Vector3f >)
auto pre_nested_volumes () const -> *const *const meshlib::ffi::MR_std_vector_MR_Box3f
auto pre_nested_volumes_mut () -> *mut *const meshlib::ffi::MR_std_vector_MR_Box3f
void set_pre_nested_volumes (value:Option<&meshlib::std_vector_MR_Box3f >)
auto additinal_socket_corners () const -> *const *const meshlib::ffi::MR_std_vector_MR_Nesting_BoxNestingCorner
auto additinal_socket_corners_mut () -> *mut *const meshlib::ffi::MR_std_vector_MR_Nesting_BoxNestingCorner
void set_additinal_socket_corners (value:Option<&meshlib::std_vector_MR_Nesting_BoxNestingCorner >)
auto cb () const -> &meshlib::std_function_bool_from_float
auto cb_mut () -> &mut meshlib::std_function_bool_from_float
void set_cb (value:&meshlib::std_function_bool_from_float)

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

Detailed Description

Generated from class MR::Nesting::BoxNestingOptions.

Generated from class MR::Nesting::BoxNestingOptions. Heap-allocated instances are held in Owned<BoxNestingOptions>.

Member Function Documentation

◆ additinal_socket_corners()

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.

◆ additinal_socket_corners_mut()

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.

◆ allow3d_nesting()

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.

◆ allow3d_nesting_mut()

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.

◆ allow_rotation()

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.

◆ allow_rotation_mut()

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.

◆ assign_from_another()

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.

◆ cb()

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.

◆ cb_mut()

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.

◆ check_less_combinations()

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.

◆ check_less_combinations_mut()

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.

◆ construct_from()

auto meshlib::nesting::BoxNestingOptions::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

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.

◆ construct_from_another()

auto meshlib::nesting::BoxNestingOptions::construct_from_another ( _other:&meshlib::nesting::BoxNestingOptions ) -> meshlib::Owned< meshlib::nesting::BoxNestingOptions >
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.

◆ expansion_factor()

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.

◆ expansion_factor_mut()

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.

◆ iteration_limit()

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.

◆ iteration_limit_mut()

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.

◆ new()

auto meshlib::nesting::BoxNestingOptions::new ( ) -> meshlib::Owned< meshlib::nesting::BoxNestingOptions >
static

Constructs an empty (default-constructed) instance.

Calls MR_Nesting_BoxNestingOptions_DefaultConstruct().

◆ pre_nested_volumes()

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.

◆ pre_nested_volumes_mut()

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.

◆ priority_metric()

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.

◆ priority_metric_mut()

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.

◆ set_additinal_socket_corners()

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.

◆ set_allow3d_nesting()

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().

◆ set_allow_rotation()

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().

◆ set_cb()

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.

◆ set_check_less_combinations()

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().

◆ set_expansion_factor()

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.

◆ set_iteration_limit()

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().

◆ set_pre_nested_volumes()

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.

◆ set_priority_metric()

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.

◆ set_volume_based_order()

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().

◆ volume_based_order()

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.

◆ volume_based_order_mut()

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.


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