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

Go to the source code of this file.

Classes

class  libnest2d::RotatedBox< Pt, Unit >
 

Namespaces

namespace  libnest2d
 

Functions

template<class Poly , class Pt = TPoint<Poly>, class Unit = TCompute<Pt>>
Poly libnest2d::removeCollinearPoints (const Poly &sh, Unit eps=Unit(0))
 
template<class Pt , class Unit = TCompute<Pt>, class R = TCompute<Pt>>
libnest2d::rectarea (const Pt &w, const Pt &vb, const Pt &vr, const Pt &vt, const Pt &vl)
 
template<class Pt , class Unit = TCompute<Pt>, class R = TCompute<Pt>, class It = typename std::vector<Pt>::const_iterator>
libnest2d::rectarea (const Pt &w, const std::array< It, 4 > &rect)
 
template<class Pt , class Unit = TCompute<Pt>, class R = TCompute<Pt>>
libnest2d::rectarea (const Pt &w, const Unit &a, const Unit &b)
 
template<class R , class Pt , class Unit >
libnest2d::rectarea (const RotatedBox< Pt, Unit > &rb)
 
template<class RawShape , class Unit = TCompute<RawShape>, class Ratio = TCompute<RawShape>, class VisitFn >
void libnest2d::rotcalipers (const RawShape &sh, VisitFn &&visitfn)
 
template<class S , class Unit = TCompute<S>, class Ratio = TCompute<S>>
RotatedBox< TPoint< S >, Unit > libnest2d::minAreaBoundingBox (const S &sh)
 
template<class RawShape >
Radians libnest2d::minAreaBoundingBoxRotation (const RawShape &sh)
 
template<class S , class Unit = TCompute<S>, class Ratio = TCompute<S>>
Radians libnest2d::fitIntoBoxRotation (const S &shape, const _Box< TPoint< S > > &box, Radians eps=1e-4)