#include <MRCMesh/MRVector3.h>#include <MRCMisc/common.h>#include <MRCMisc/exports.h>#include <stdbool.h>#include <stddef.h>Go to the source code of this file.
Typedefs | |
| typedef struct MR_Nesting_NestingBaseParams | MR_Nesting_NestingBaseParams |
| typedef struct MR_expected_MR_Vector_MR_Nesting_NestingResult_MR_ObjId_std_string | MR_expected_MR_Vector_MR_Nesting_NestingResult_MR_ObjId_std_string |
| typedef struct MR_std_shared_ptr_MR_Nesting_IBoxNestingPriority | MR_std_shared_ptr_MR_Nesting_IBoxNestingPriority |
| typedef struct MR_std_vector_MR_Box3f | MR_std_vector_MR_Box3f |
| typedef struct MR_std_vector_MR_Nesting_BoxNestingCorner | MR_std_vector_MR_Nesting_BoxNestingCorner |
| typedef struct MR_Nesting_BoxNestingCorner | MR_Nesting_BoxNestingCorner |
| typedef struct MR_Nesting_IBoxNestingPriority | MR_Nesting_IBoxNestingPriority |
| typedef struct MR_Nesting_BoxNestingOptions | MR_Nesting_BoxNestingOptions |
| typedef struct MR_Nesting_BoxNestingParams | MR_Nesting_BoxNestingParams |
| typedef struct MR_expected_MR_Vector_MR_Nesting_NestingResult_MR_ObjId_std_string MR_expected_MR_Vector_MR_Nesting_NestingResult_MR_ObjId_std_string |
Stores either a MR::Vector<MR::Nesting::NestingResult, MR::ObjId> that represents success or a std::string that represents an error. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| typedef struct MR_Nesting_BoxNestingCorner MR_Nesting_BoxNestingCorner |
Generated from class MR::Nesting::BoxNestingCorner. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| typedef struct MR_Nesting_BoxNestingOptions MR_Nesting_BoxNestingOptions |
Generated from class MR::Nesting::BoxNestingOptions. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| typedef struct MR_Nesting_BoxNestingParams MR_Nesting_BoxNestingParams |
Generated from class MR::Nesting::BoxNestingParams. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| typedef struct MR_Nesting_IBoxNestingPriority MR_Nesting_IBoxNestingPriority |
class to override box nesting metrics Generated from class MR::Nesting::IBoxNestingPriority.
| typedef struct MR_Nesting_NestingBaseParams MR_Nesting_NestingBaseParams |
Generated from class MR::Nesting::NestingBaseParams. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| typedef struct MR_std_shared_ptr_MR_Nesting_IBoxNestingPriority MR_std_shared_ptr_MR_Nesting_IBoxNestingPriority |
Wraps a pointer to a single shared reference-counted heap-allocated MR::Nesting::IBoxNestingPriority. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| typedef struct MR_std_vector_MR_Box3f MR_std_vector_MR_Box3f |
Generated from C++ container std::vector<MR::Box3f>. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
Generated from C++ container std::vector<MR::Nesting::BoxNestingCorner>. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| MRC_API MR_expected_MR_Vector_MR_Nesting_NestingResult_MR_ObjId_std_string * MR_Nesting_boxNesting | ( | const MR_Vector_MR_Nesting_MeshXf_MR_ObjId * | meshes, |
| const MR_Nesting_BoxNestingParams * | params ) |
finds best positions of input meshes to fit the nest (checks them by contacting box corners) Generated from function MR::Nesting::boxNesting. Parameter meshes can not be null. It is a single object. Parameter params can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_MR_Vector_MR_Nesting_NestingResult_MR_ObjId_std_string_Destroy() to free it when you're done using it.
| MRC_API MR_Nesting_BoxNestingCorner * MR_Nesting_BoxNestingCorner_AssignFromAnother | ( | MR_Nesting_BoxNestingCorner * | _this, |
| const MR_Nesting_BoxNestingCorner * | _other ) |
Generated from method MR::Nesting::BoxNestingCorner::operator=. Parameter _this can not be null. It is a single object. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it held previously.
| MRC_API MR_Nesting_BoxNestingCorner * MR_Nesting_BoxNestingCorner_ConstructFrom | ( | MR_Vector3f | pos, |
| unsigned char | bitMask ) |
Constructs MR::Nesting::BoxNestingCorner elementwise. The reference to the parameter pos might be preserved in the constructed object. The reference to the parameter bitMask might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_Nesting_BoxNestingCorner_Destroy() to free it when you're done using it. When this function is called, this object will drop any object references it held previously.
| MRC_API MR_Nesting_BoxNestingCorner * MR_Nesting_BoxNestingCorner_ConstructFromAnother | ( | const MR_Nesting_BoxNestingCorner * | _other | ) |
Generated from constructor MR::Nesting::BoxNestingCorner::BoxNestingCorner. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_Nesting_BoxNestingCorner_Destroy() to free it when you're done using it.
| MRC_API MR_Nesting_BoxNestingCorner * MR_Nesting_BoxNestingCorner_DefaultConstruct | ( | void | ) |
Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_Nesting_BoxNestingCorner_Destroy() to free it when you're done using it.
| MRC_API MR_Nesting_BoxNestingCorner * MR_Nesting_BoxNestingCorner_DefaultConstructArray | ( | size_t | num_elems | ) |
Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_Nesting_BoxNestingCorner_DestroyArray(). Use MR_Nesting_BoxNestingCorner_OffsetMutablePtr() and MR_Nesting_BoxNestingCorner_OffsetPtr() to access the array elements.
| MRC_API void MR_Nesting_BoxNestingCorner_Destroy | ( | const MR_Nesting_BoxNestingCorner * | _this | ) |
Destroys a heap-allocated instance of MR_Nesting_BoxNestingCorner. Does nothing if the pointer is null.
| MRC_API void MR_Nesting_BoxNestingCorner_DestroyArray | ( | const MR_Nesting_BoxNestingCorner * | _this | ) |
Destroys a heap-allocated array of MR_Nesting_BoxNestingCorner. Does nothing if the pointer is null.
| MRC_API const unsigned char * MR_Nesting_BoxNestingCorner_Get_bitMask | ( | const MR_Nesting_BoxNestingCorner * | _this | ) |
corner mask 0bZYX (0b000 - lower left corner, 0b111 - upper right) Returns a pointer to a member variable of class MR::Nesting::BoxNestingCorner named bitMask. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API const MR_Vector3f * MR_Nesting_BoxNestingCorner_Get_pos | ( | const MR_Nesting_BoxNestingCorner * | _this | ) |
Vector3f - corner position Returns a pointer to a member variable of class MR::Nesting::BoxNestingCorner named pos. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API unsigned char * MR_Nesting_BoxNestingCorner_GetMutable_bitMask | ( | MR_Nesting_BoxNestingCorner * | _this | ) |
corner mask 0bZYX (0b000 - lower left corner, 0b111 - upper right) Returns a mutable pointer to a member variable of class MR::Nesting::BoxNestingCorner named bitMask. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API MR_Vector3f * MR_Nesting_BoxNestingCorner_GetMutable_pos | ( | MR_Nesting_BoxNestingCorner * | _this | ) |
Vector3f - corner position Returns a mutable pointer to a member variable of class MR::Nesting::BoxNestingCorner named pos. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API MR_Nesting_BoxNestingCorner * MR_Nesting_BoxNestingCorner_OffsetMutablePtr | ( | MR_Nesting_BoxNestingCorner * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
| MRC_API const MR_Nesting_BoxNestingCorner * MR_Nesting_BoxNestingCorner_OffsetPtr | ( | const MR_Nesting_BoxNestingCorner * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
| MRC_API void MR_Nesting_BoxNestingCorner_Set_bitMask | ( | MR_Nesting_BoxNestingCorner * | _this, |
| unsigned char | value ) |
corner mask 0bZYX (0b000 - lower left corner, 0b111 - upper right) Modifies a member variable of class MR::Nesting::BoxNestingCorner named bitMask. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element bitMask. When this function is called, this object will drop object references it held previously in bitMask.
| MRC_API void MR_Nesting_BoxNestingCorner_Set_pos | ( | MR_Nesting_BoxNestingCorner * | _this, |
| MR_Vector3f | value ) |
Vector3f - corner position Modifies a member variable of class MR::Nesting::BoxNestingCorner named pos. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element pos. When this function is called, this object will drop object references it held previously in pos.
| MRC_API MR_Nesting_BoxNestingOptions * MR_Nesting_BoxNestingOptions_AssignFromAnother | ( | MR_Nesting_BoxNestingOptions * | _this, |
| MR_PassBy | _other_pass_by, | ||
| MR_Nesting_BoxNestingOptions * | _other ) |
Generated from method MR::Nesting::BoxNestingOptions::operator=. Parameter _this can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it held previously.
| MRC_API MR_Nesting_BoxNestingOptions * MR_Nesting_BoxNestingOptions_ConstructFrom | ( | bool | allow3dNesting, |
| bool | allowRotation, | ||
| bool | volumeBasedOrder, | ||
| bool | checkLessCombinations, | ||
| int | iterationLimit, | ||
| MR_PassBy | priorityMetric_pass_by, | ||
| MR_std_shared_ptr_MR_Nesting_IBoxNestingPriority * | priorityMetric, | ||
| const MR_Vector3f * | expansionFactor, | ||
| const MR_std_vector_MR_Box3f * | preNestedVolumes, | ||
| const MR_std_vector_MR_Nesting_BoxNestingCorner * | additinalSocketCorners, | ||
| MR_PassBy | cb_pass_by, | ||
| MR_std_function_bool_from_float * | cb ) |
Constructs MR::Nesting::BoxNestingOptions elementwise. 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. Never returns null. Returns an instance allocated on the heap! Must call MR_Nesting_BoxNestingOptions_Destroy() to free it when you're done using it. When this function is called, this object will drop any object references it held previously.
| MRC_API MR_Nesting_BoxNestingOptions * MR_Nesting_BoxNestingOptions_ConstructFromAnother | ( | MR_PassBy | _other_pass_by, |
| MR_Nesting_BoxNestingOptions * | _other ) |
Generated from constructor MR::Nesting::BoxNestingOptions::BoxNestingOptions. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_Nesting_BoxNestingOptions_Destroy() to free it when you're done using it.
| MRC_API MR_Nesting_BoxNestingOptions * MR_Nesting_BoxNestingOptions_DefaultConstruct | ( | void | ) |
Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_Nesting_BoxNestingOptions_Destroy() to free it when you're done using it.
| MRC_API MR_Nesting_BoxNestingOptions * MR_Nesting_BoxNestingOptions_DefaultConstructArray | ( | size_t | num_elems | ) |
Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_Nesting_BoxNestingOptions_DestroyArray(). Use MR_Nesting_BoxNestingOptions_OffsetMutablePtr() and MR_Nesting_BoxNestingOptions_OffsetPtr() to access the array elements.
| MRC_API void MR_Nesting_BoxNestingOptions_Destroy | ( | const MR_Nesting_BoxNestingOptions * | _this | ) |
Destroys a heap-allocated instance of MR_Nesting_BoxNestingOptions. Does nothing if the pointer is null.
| MRC_API void MR_Nesting_BoxNestingOptions_DestroyArray | ( | const MR_Nesting_BoxNestingOptions * | _this | ) |
Destroys a heap-allocated array of MR_Nesting_BoxNestingOptions. Does nothing if the pointer is null.
| MRC_API const MR_std_vector_MR_Nesting_BoxNestingCorner *const * MR_Nesting_BoxNestingOptions_Get_additinalSocketCorners | ( | const MR_Nesting_BoxNestingOptions * | _this | ) |
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. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API const bool * MR_Nesting_BoxNestingOptions_Get_allow3dNesting | ( | const MR_Nesting_BoxNestingOptions * | _this | ) |
if true allows placing objects over the bottom plane Returns a pointer to a member variable of class MR::Nesting::BoxNestingOptions named allow3dNesting. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API const bool * MR_Nesting_BoxNestingOptions_Get_allowRotation | ( | const MR_Nesting_BoxNestingOptions * | _this | ) |
set false to keep original XY orientation Returns a pointer to a member variable of class MR::Nesting::BoxNestingOptions named allowRotation. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API const MR_std_function_bool_from_float * MR_Nesting_BoxNestingOptions_Get_cb | ( | const MR_Nesting_BoxNestingOptions * | _this | ) |
callback indicating progress of the nesting Returns a pointer to a member variable of class MR::Nesting::BoxNestingOptions named cb. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API const bool * MR_Nesting_BoxNestingOptions_Get_checkLessCombinations | ( | const MR_Nesting_BoxNestingOptions * | _this | ) |
reduces nesting candidate options for speedup Returns a pointer to a member variable of class MR::Nesting::BoxNestingOptions named checkLessCombinations. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API const MR_Vector3f *const * MR_Nesting_BoxNestingOptions_Get_expansionFactor | ( | const MR_Nesting_BoxNestingOptions * | _this | ) |
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. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API const int * MR_Nesting_BoxNestingOptions_Get_iterationLimit | ( | const MR_Nesting_BoxNestingOptions * | _this | ) |
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. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API const MR_std_vector_MR_Box3f *const * MR_Nesting_BoxNestingOptions_Get_preNestedVolumes | ( | const MR_Nesting_BoxNestingOptions * | _this | ) |
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. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API const MR_std_shared_ptr_MR_Nesting_IBoxNestingPriority * MR_Nesting_BoxNestingOptions_Get_priorityMetric | ( | const MR_Nesting_BoxNestingOptions * | _this | ) |
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. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API const bool * MR_Nesting_BoxNestingOptions_Get_volumeBasedOrder | ( | const MR_Nesting_BoxNestingOptions * | _this | ) |
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. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API const MR_std_vector_MR_Nesting_BoxNestingCorner ** MR_Nesting_BoxNestingOptions_GetMutable_additinalSocketCorners | ( | MR_Nesting_BoxNestingOptions * | _this | ) |
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. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API bool * MR_Nesting_BoxNestingOptions_GetMutable_allow3dNesting | ( | MR_Nesting_BoxNestingOptions * | _this | ) |
if true allows placing objects over the bottom plane Returns a mutable pointer to a member variable of class MR::Nesting::BoxNestingOptions named allow3dNesting. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API bool * MR_Nesting_BoxNestingOptions_GetMutable_allowRotation | ( | MR_Nesting_BoxNestingOptions * | _this | ) |
set false to keep original XY orientation Returns a mutable pointer to a member variable of class MR::Nesting::BoxNestingOptions named allowRotation. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API MR_std_function_bool_from_float * MR_Nesting_BoxNestingOptions_GetMutable_cb | ( | MR_Nesting_BoxNestingOptions * | _this | ) |
callback indicating progress of the nesting Returns a mutable pointer to a member variable of class MR::Nesting::BoxNestingOptions named cb. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API bool * MR_Nesting_BoxNestingOptions_GetMutable_checkLessCombinations | ( | MR_Nesting_BoxNestingOptions * | _this | ) |
reduces nesting candidate options for speedup Returns a mutable pointer to a member variable of class MR::Nesting::BoxNestingOptions named checkLessCombinations. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API const MR_Vector3f ** MR_Nesting_BoxNestingOptions_GetMutable_expansionFactor | ( | MR_Nesting_BoxNestingOptions * | _this | ) |
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. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API int * MR_Nesting_BoxNestingOptions_GetMutable_iterationLimit | ( | MR_Nesting_BoxNestingOptions * | _this | ) |
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. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API const MR_std_vector_MR_Box3f ** MR_Nesting_BoxNestingOptions_GetMutable_preNestedVolumes | ( | MR_Nesting_BoxNestingOptions * | _this | ) |
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. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API MR_std_shared_ptr_MR_Nesting_IBoxNestingPriority * MR_Nesting_BoxNestingOptions_GetMutable_priorityMetric | ( | MR_Nesting_BoxNestingOptions * | _this | ) |
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. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API bool * MR_Nesting_BoxNestingOptions_GetMutable_volumeBasedOrder | ( | MR_Nesting_BoxNestingOptions * | _this | ) |
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. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API MR_Nesting_BoxNestingOptions * MR_Nesting_BoxNestingOptions_OffsetMutablePtr | ( | MR_Nesting_BoxNestingOptions * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
| MRC_API const MR_Nesting_BoxNestingOptions * MR_Nesting_BoxNestingOptions_OffsetPtr | ( | const MR_Nesting_BoxNestingOptions * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
| MRC_API void MR_Nesting_BoxNestingOptions_Set_additinalSocketCorners | ( | MR_Nesting_BoxNestingOptions * | _this, |
| const MR_std_vector_MR_Nesting_BoxNestingCorner * | value ) |
user might force these sockets to be considered as corners for placing candidates Modifies a member variable of class MR::Nesting::BoxNestingOptions named additinalSocketCorners. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element additinalSocketCorners. When this function is called, this object will drop object references it held previously in additinalSocketCorners.
| MRC_API void MR_Nesting_BoxNestingOptions_Set_allow3dNesting | ( | MR_Nesting_BoxNestingOptions * | _this, |
| bool | value ) |
if true allows placing objects over the bottom plane Modifies a member variable of class MR::Nesting::BoxNestingOptions named allow3dNesting. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it held previously in allow3dNesting.
| MRC_API void MR_Nesting_BoxNestingOptions_Set_allowRotation | ( | MR_Nesting_BoxNestingOptions * | _this, |
| bool | value ) |
set false to keep original XY orientation Modifies a member variable of class MR::Nesting::BoxNestingOptions named allowRotation. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it held previously in allowRotation.
| MRC_API void MR_Nesting_BoxNestingOptions_Set_cb | ( | MR_Nesting_BoxNestingOptions * | _this, |
| MR_PassBy | value_pass_by, | ||
| MR_std_function_bool_from_float * | value ) |
callback indicating progress of the nesting Modifies a member variable of class MR::Nesting::BoxNestingOptions named cb. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element cb. When this function is called, this object will drop object references it held previously in cb.
| MRC_API void MR_Nesting_BoxNestingOptions_Set_checkLessCombinations | ( | MR_Nesting_BoxNestingOptions * | _this, |
| bool | value ) |
reduces nesting candidate options for speedup Modifies a member variable of class MR::Nesting::BoxNestingOptions named checkLessCombinations. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it held previously in checkLessCombinations.
| MRC_API void MR_Nesting_BoxNestingOptions_Set_expansionFactor | ( | MR_Nesting_BoxNestingOptions * | _this, |
| const MR_Vector3f * | value ) |
optional input expansion of boxes (useful to compensate shrinkage of material) Modifies a member variable of class MR::Nesting::BoxNestingOptions named expansionFactor. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element expansionFactor. When this function is called, this object will drop object references it held previously in expansionFactor.
| MRC_API void MR_Nesting_BoxNestingOptions_Set_iterationLimit | ( | MR_Nesting_BoxNestingOptions * | _this, |
| int | value ) |
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. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it held previously in iterationLimit.
| MRC_API void MR_Nesting_BoxNestingOptions_Set_preNestedVolumes | ( | MR_Nesting_BoxNestingOptions * | _this, |
| const MR_std_vector_MR_Box3f * | value ) |
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. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element preNestedVolumes. When this function is called, this object will drop object references it held previously in preNestedVolumes.
| MRC_API void MR_Nesting_BoxNestingOptions_Set_priorityMetric | ( | MR_Nesting_BoxNestingOptions * | _this, |
| MR_PassBy | value_pass_by, | ||
| MR_std_shared_ptr_MR_Nesting_IBoxNestingPriority * | value ) |
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. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element priorityMetric. When this function is called, this object will drop object references it held previously in priorityMetric.
| MRC_API void MR_Nesting_BoxNestingOptions_Set_volumeBasedOrder | ( | MR_Nesting_BoxNestingOptions * | _this, |
| bool | value ) |
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. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it held previously in volumeBasedOrder.
| MRC_API MR_Nesting_BoxNestingParams * MR_Nesting_BoxNestingParams_AssignFromAnother | ( | MR_Nesting_BoxNestingParams * | _this, |
| MR_PassBy | _other_pass_by, | ||
| MR_Nesting_BoxNestingParams * | _other ) |
Generated from method MR::Nesting::BoxNestingParams::operator=. Parameter _this can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it held previously.
| MRC_API MR_Nesting_BoxNestingParams * MR_Nesting_BoxNestingParams_ConstructFrom | ( | const MR_Nesting_NestingBaseParams * | baseParams, |
| MR_PassBy | options_pass_by, | ||
| MR_Nesting_BoxNestingOptions * | options ) |
Constructs MR::Nesting::BoxNestingParams elementwise. Parameter baseParams can not be null. It is a single object. The reference to the parameter baseParams might be preserved in the constructed object. The reference to the parameter options might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_Nesting_BoxNestingParams_Destroy() to free it when you're done using it. When this function is called, this object will drop any object references it held previously.
| MRC_API MR_Nesting_BoxNestingParams * MR_Nesting_BoxNestingParams_ConstructFromAnother | ( | MR_PassBy | _other_pass_by, |
| MR_Nesting_BoxNestingParams * | _other ) |
Generated from constructor MR::Nesting::BoxNestingParams::BoxNestingParams. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_Nesting_BoxNestingParams_Destroy() to free it when you're done using it.
| MRC_API MR_Nesting_BoxNestingParams * MR_Nesting_BoxNestingParams_DefaultConstruct | ( | void | ) |
Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_Nesting_BoxNestingParams_Destroy() to free it when you're done using it.
| MRC_API MR_Nesting_BoxNestingParams * MR_Nesting_BoxNestingParams_DefaultConstructArray | ( | size_t | num_elems | ) |
Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_Nesting_BoxNestingParams_DestroyArray(). Use MR_Nesting_BoxNestingParams_OffsetMutablePtr() and MR_Nesting_BoxNestingParams_OffsetPtr() to access the array elements.
| MRC_API void MR_Nesting_BoxNestingParams_Destroy | ( | const MR_Nesting_BoxNestingParams * | _this | ) |
Destroys a heap-allocated instance of MR_Nesting_BoxNestingParams. Does nothing if the pointer is null.
| MRC_API void MR_Nesting_BoxNestingParams_DestroyArray | ( | const MR_Nesting_BoxNestingParams * | _this | ) |
Destroys a heap-allocated array of MR_Nesting_BoxNestingParams. Does nothing if the pointer is null.
| MRC_API const MR_Nesting_NestingBaseParams * MR_Nesting_BoxNestingParams_Get_baseParams | ( | const MR_Nesting_BoxNestingParams * | _this | ) |
Returns a pointer to a member variable of class MR::Nesting::BoxNestingParams named baseParams. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API const MR_Nesting_BoxNestingOptions * MR_Nesting_BoxNestingParams_Get_options | ( | const MR_Nesting_BoxNestingParams * | _this | ) |
Returns a pointer to a member variable of class MR::Nesting::BoxNestingParams named options. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API MR_Nesting_NestingBaseParams * MR_Nesting_BoxNestingParams_GetMutable_baseParams | ( | MR_Nesting_BoxNestingParams * | _this | ) |
Returns a mutable pointer to a member variable of class MR::Nesting::BoxNestingParams named baseParams. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API MR_Nesting_BoxNestingOptions * MR_Nesting_BoxNestingParams_GetMutable_options | ( | MR_Nesting_BoxNestingParams * | _this | ) |
Returns a mutable pointer to a member variable of class MR::Nesting::BoxNestingParams named options. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API MR_Nesting_BoxNestingParams * MR_Nesting_BoxNestingParams_OffsetMutablePtr | ( | MR_Nesting_BoxNestingParams * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
| MRC_API const MR_Nesting_BoxNestingParams * MR_Nesting_BoxNestingParams_OffsetPtr | ( | const MR_Nesting_BoxNestingParams * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
| MRC_API void MR_Nesting_BoxNestingParams_Set_baseParams | ( | MR_Nesting_BoxNestingParams * | _this, |
| const MR_Nesting_NestingBaseParams * | value ) |
Modifies a member variable of class MR::Nesting::BoxNestingParams named baseParams. Parameter _this can not be null. It is a single object. Parameter value can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element baseParams. When this function is called, this object will drop object references it held previously in baseParams.
| MRC_API void MR_Nesting_BoxNestingParams_Set_options | ( | MR_Nesting_BoxNestingParams * | _this, |
| MR_PassBy | value_pass_by, | ||
| MR_Nesting_BoxNestingOptions * | value ) |
Modifies a member variable of class MR::Nesting::BoxNestingParams named options. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element options. When this function is called, this object will drop object references it held previously in options.
| MRC_API MR_expected_void_std_string * MR_Nesting_fillNestingSocketCorneres | ( | const MR_std_vector_MR_Box3f * | nestedBoxes, |
| MR_std_vector_MR_Nesting_BoxNestingCorner * | outCorners, | ||
| const MR_std_function_bool_from_float * | cb ) |
fills outCorners based on nestedBoxes corners
also adding corners in intersections of nestedBoxes Generated from function MR::Nesting::fillNestingSocketCorneres. Parameter nestedBoxes can not be null. It is a single object. Parameter outCorners can not be null. It is a single object. Parameter cb is a single object. Parameter cb has a default argument: {}, pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_void_std_string_Destroy() to free it when you're done using it.
| MRC_API MR_std_shared_ptr_MR_Nesting_IBoxNestingPriority * MR_Nesting_getNeighborigDensityPriorityMetric | ( | const MR_Box3f * | nest, |
| float | neighborhood ) |
priority metric that maximizes density of placement in local neighborhood Generated from function MR::Nesting::getNeighborigDensityPriorityMetric. Parameter nest can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_shared_ptr_MR_Nesting_IBoxNestingPriority_Destroy() to free it when you're done using it.
| MRC_API MR_std_shared_ptr_MR_Nesting_IBoxNestingPriority * MR_Nesting_getNestPostionMinPriorityMetric | ( | const MR_Box3f * | nest | ) |
priority metric that minimizes position of new object by Z->Y->X coordinate in nest Generated from function MR::Nesting::getNestPostionMinPriorityMetric. Parameter nest can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_shared_ptr_MR_Nesting_IBoxNestingPriority_Destroy() to free it when you're done using it.
| MRC_API void MR_Nesting_IBoxNestingPriority_addNested | ( | MR_Nesting_IBoxNestingPriority * | _this, |
| const MR_Box3f * | box ) |
accumulate priority by one of already nested boxes Generated from method MR::Nesting::IBoxNestingPriority::addNested. Parameter _this can not be null. It is a single object. Parameter box can not be null. It is a single object.
| MRC_API double MR_Nesting_IBoxNestingPriority_complete | ( | const MR_Nesting_IBoxNestingPriority * | _this | ) |
finalize priority and return the value (more - better) Generated from method MR::Nesting::IBoxNestingPriority::complete. Parameter _this can not be null. It is a single object.
| MRC_API void MR_Nesting_IBoxNestingPriority_Destroy | ( | const MR_Nesting_IBoxNestingPriority * | _this | ) |
Destroys a heap-allocated instance of MR_Nesting_IBoxNestingPriority. Does nothing if the pointer is null.
| MRC_API void MR_Nesting_IBoxNestingPriority_DestroyArray | ( | const MR_Nesting_IBoxNestingPriority * | _this | ) |
Destroys a heap-allocated array of MR_Nesting_IBoxNestingPriority. Does nothing if the pointer is null.
| MRC_API void MR_Nesting_IBoxNestingPriority_init | ( | MR_Nesting_IBoxNestingPriority * | _this, |
| const MR_Box3f * | thisBox ) |
init priority calculation with box of placed object Generated from method MR::Nesting::IBoxNestingPriority::init. Parameter _this can not be null. It is a single object. Parameter thisBox can not be null. It is a single object.
| MRC_API MR_Nesting_IBoxNestingPriority * MR_Nesting_IBoxNestingPriority_OffsetMutablePtr | ( | MR_Nesting_IBoxNestingPriority * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
| MRC_API const MR_Nesting_IBoxNestingPriority * MR_Nesting_IBoxNestingPriority_OffsetPtr | ( | const MR_Nesting_IBoxNestingPriority * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.