MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::Nesting Namespace Reference

Classes

struct  BoxNestingCorner
struct  BoxNestingOptions
struct  BoxNestingParams
class  IBoxNestingPriority
 class to override box nesting metrics More...
struct  MeshXf
struct  Nesting3mfParams
struct  NestingBaseParams
struct  NestingResult
class  SequentialNester
 class to add meshes to nest sequentially More...
struct  TetrisDensifyOptions
struct  TetrisDensifyParams

Functions

Expected< void > exportNesting3mf (const std::filesystem::path &path, const Nesting3mfParams &params)
 exports slicestack 3mf file based on placed meshes
std::shared_ptr< IBoxNestingPrioritygetNestPostionMinPriorityMetric (const Box3f &nest)
 priority metric that minimizes position of new object by Z->Y->X coordinate in nest
std::shared_ptr< IBoxNestingPrioritygetNeighborigDensityPriorityMetric (const Box3f &nest, float neighborhood)
 priority metric that maximizes density of placement in local neighborhood
Expected< void > fillNestingSocketCorneres (const std::vector< Box3f > &nestedBoxes, std::vector< BoxNestingCorner > &outCorners, const ProgressCallback &cb={})
Expected< Vector< NestingResult, ObjId > > boxNesting (const Vector< MeshXf, ObjId > &meshes, const BoxNestingParams &params)
 finds best positions of input meshes to fit the nest (checks them by contacting box corners)
Expected< Vector< AffineXf3f, ObjId > > tetrisNestingDensify (const Vector< MeshXf, ObjId > &meshes, const TetrisDensifyParams &params)
 make nested meshes more compact by representing them via voxels and pushing to nest zero