MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.nesting.Functions Class Reference

Static Public Member Functions

static meshlib.std_shared_ptr_MR_Nesting_IBoxNestingPriority getNestPostionMinPriorityMetric (meshlib.Box3f nest)
static meshlib.std_shared_ptr_MR_Nesting_IBoxNestingPriority getNeighborigDensityPriorityMetric (meshlib.Box3f nest, float neighborhood)
static void fillNestingSocketCorneres (meshlib.std_vector_MR_Box3f nestedBoxes, meshlib.std_vector_MR_Nesting_BoxNestingCorner outCorners, meshlib.std_function_bool_from_float cb)
static meshlib.Vector_MR_Nesting_NestingResult_MR_ObjId boxNesting (meshlib.Vector_MR_Nesting_MeshXf_MR_ObjId meshes, meshlib.nesting.BoxNestingParams params)
static void exportNesting3mf (java.lang.String path, meshlib.nesting.Nesting3mfParams params)
static meshlib.Vector_MR_AffineXf3f_MR_ObjId tetrisNestingDensify (meshlib.Vector_MR_Nesting_MeshXf_MR_ObjId meshes, meshlib.nesting.TetrisDensifyParams params)

Detailed Description

The free functions of this namespace.

Member Function Documentation

◆ boxNesting()

finds best positions of input meshes to fit the nest (checks them by contacting box corners) Generated from function MR::Nesting::boxNesting.

Calls MR_Nesting_boxNesting(). The C++ function returns expected<MR::Vector<MR::Nesting::NestingResult, MR::ObjId>, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ exportNesting3mf()

void meshlib.nesting.Functions.exportNesting3mf ( java.lang.String path,
meshlib.nesting.Nesting3mfParams params )
static

exports slicestack 3mf file based on placed meshes Generated from function MR::Nesting::exportNesting3mf.

Calls MR_Nesting_exportNesting3mf(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fillNestingSocketCorneres()

void meshlib.nesting.Functions.fillNestingSocketCorneres ( meshlib.std_vector_MR_Box3f nestedBoxes,
meshlib.std_vector_MR_Nesting_BoxNestingCorner outCorners,
meshlib.std_function_bool_from_float cb )
static

fills outCorners based on nestedBoxes corners
also adding corners in intersections of nestedBoxes Generated from function MR::Nesting::fillNestingSocketCorneres.

Calls MR_Nesting_fillNestingSocketCorneres(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ getNeighborigDensityPriorityMetric()

meshlib.std_shared_ptr_MR_Nesting_IBoxNestingPriority meshlib.nesting.Functions.getNeighborigDensityPriorityMetric ( meshlib.Box3f nest,
float neighborhood )
static

priority metric that maximizes density of placement in local neighborhood Generated from function MR::Nesting::getNeighborigDensityPriorityMetric.

Calls MR_Nesting_getNeighborigDensityPriorityMetric().

◆ getNestPostionMinPriorityMetric()

meshlib.std_shared_ptr_MR_Nesting_IBoxNestingPriority meshlib.nesting.Functions.getNestPostionMinPriorityMetric ( meshlib.Box3f nest)
static

priority metric that minimizes position of new object by Z->Y->X coordinate in nest Generated from function MR::Nesting::getNestPostionMinPriorityMetric.

Calls MR_Nesting_getNestPostionMinPriorityMetric().

◆ tetrisNestingDensify()

meshlib.Vector_MR_AffineXf3f_MR_ObjId meshlib.nesting.Functions.tetrisNestingDensify ( meshlib.Vector_MR_Nesting_MeshXf_MR_ObjId meshes,
meshlib.nesting.TetrisDensifyParams params )
static

make nested meshes more compact by representing them via voxels and pushing to nest zero Generated from function MR::Nesting::tetrisNestingDensify.

Calls MR_Nesting_tetrisNestingDensify(). The C++ function returns expected<MR::Vector<MR::AffineXf3f, MR::ObjId>, std::string>: the value is returned and an error is thrown as UnexpectedResultException.


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