Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
nester.hpp File Reference
#include <memory>
#include <vector>
#include <map>
#include <array>
#include <algorithm>
#include <functional>
#include <libnest2d/geometry_traits.hpp>
+ Include dependency graph for nester.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  libnest2d::_Item< RawShape >
 An item to be placed on a bin. More...
 
struct  libnest2d::_Item< RawShape >::BBCache
 
class  libnest2d::_Rectangle< Sh >
 Subclass of _Item for regular rectangle items. More...
 
struct  libnest2d::ConstItemRange< Iterator >
 
class  libnest2d::PlacementStrategyLike< PlacementStrategy >
 A wrapper interface (trait) class for any placement strategy provider. More...
 
class  libnest2d::SelectionStrategyLike< SelectionStrategy >
 
class  libnest2d::_Nester< PlacementStrategy, SelectionStrategy >
 

Namespaces

namespace  libnest2d
 

Typedefs

template<class RawShape >
using libnest2d::_ItemRef = std::reference_wrapper< _Item< RawShape > >
 
template<class RawShape >
using libnest2d::_ItemGroup = std::vector< _ItemRef< RawShape > >
 
template<class RawShape >
using libnest2d::_PackGroup = std::vector< std::vector< _ItemRef< RawShape > > >
 A list of packed item vectors. Each vector represents a bin.
 
using libnest2d::ProgressFunction = std::function< void(unsigned)>
 
using libnest2d::StopCondition = std::function< bool(void)>
 

Functions

template<class Sh >
Sh libnest2d::create_rect (TCoord< Sh > width, TCoord< Sh > height)
 
template<class Container >
ConstItemRange< typename Container::const_iterator > libnest2d::rem (typename Container::const_iterator it, const Container &cont)
 

Variables

static const constexpr int libnest2d::BIN_ID_UNSET = -1