diff options
author | tamasmeszaros <meszaros.q@gmail.com> | 2018-05-17 11:37:26 +0300 |
---|---|---|
committer | tamasmeszaros <meszaros.q@gmail.com> | 2018-05-17 11:37:26 +0300 |
commit | fd829580e9c9c1f92e4a2338bcee35a5b319030a (patch) | |
tree | 7c79acf5d00e4775854649c871ff6a470e4117c6 /xs/src/libnest2d/libnest2d.h | |
parent | b6b79458300f907e6878a71512912238bcb3e692 (diff) |
Working arrange_objects with DJD selection heuristic and a bottom-left placement strategy.
Diffstat (limited to 'xs/src/libnest2d/libnest2d.h')
-rw-r--r-- | xs/src/libnest2d/libnest2d.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/xs/src/libnest2d/libnest2d.h b/xs/src/libnest2d/libnest2d.h new file mode 100644 index 000000000..dcdb812dc --- /dev/null +++ b/xs/src/libnest2d/libnest2d.h @@ -0,0 +1,37 @@ +#ifndef LIBNEST2D_H +#define LIBNEST2D_H + +// The type of backend should be set conditionally by the cmake configuriation +// for now we set it statically to clipper backend +#include <libnest2d/clipper_backend/clipper_backend.hpp> + +#include <libnest2d/libnest2d.hpp> +#include <libnest2d/placers/bottomleftplacer.hpp> +#include <libnest2d/placers/nfpplacer.hpp> +#include <libnest2d/selections/firstfit.hpp> +#include <libnest2d/selections/filler.hpp> +#include <libnest2d/selections/djd_heuristic.hpp> + +namespace libnest2d { + +using Point = PointImpl; +using Coord = TCoord<PointImpl>; +using Box = _Box<PointImpl>; +using Segment = _Segment<PointImpl>; + +using Item = _Item<PolygonImpl>; +using Rectangle = _Rectangle<PolygonImpl>; + +using PackGroup = _PackGroup<PolygonImpl>; +using IndexedPackGroup = _IndexedPackGroup<PolygonImpl>; + +using FillerSelection = strategies::_FillerSelection<PolygonImpl>; +using FirstFitSelection = strategies::_FirstFitSelection<PolygonImpl>; +using DJDHeuristic = strategies::_DJDHeuristic<PolygonImpl>; + +using BottomLeftPlacer = strategies::_BottomLeftPlacer<PolygonImpl>; +using NofitPolyPlacer = strategies::_NofitPolyPlacer<PolygonImpl>; + +} + +#endif // LIBNEST2D_H |