MeshLib C++ Docs
Loading...
Searching...
No Matches
MRBoxNesting.h File Reference
#include "MRNestingStructures.h"
#include "MRMesh/MRVector.h"
#include "MRMesh/MRId.h"
#include "MRMesh/MRExpected.h"

Go to the source code of this file.

Classes

struct  MR::Nesting::BoxNestingCorner
class  MR::Nesting::IBoxNestingPriority
 class to override box nesting metrics More...
struct  MR::Nesting::BoxNestingOptions
struct  MR::Nesting::BoxNestingParams

Namespaces

namespace  MR
 only for bindings generation
namespace  MR::Nesting

Functions

std::shared_ptr< IBoxNestingPriorityMR::Nesting::getNestPostionMinPriorityMetric (const Box3f &nest)
 priority metric that minimizes position of new object by Z->Y->X coordinate in nest
std::shared_ptr< IBoxNestingPriorityMR::Nesting::getNeighborigDensityPriorityMetric (const Box3f &nest, float neighborhood)
 priority metric that maximizes density of placement in local neighborhood
Expected< void > MR::Nesting::fillNestingSocketCorneres (const std::vector< Box3f > &nestedBoxes, std::vector< BoxNestingCorner > &outCorners, const ProgressCallback &cb={})
Expected< Vector< NestingResult, ObjId > > MR::Nesting::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)