diff options
author | bubnikv <bubnikv@gmail.com> | 2018-09-19 12:02:24 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2018-09-19 12:02:24 +0300 |
commit | 0558b53493a77bae44831cf87bb0f59359828ef5 (patch) | |
tree | c3e8dbdf7d91a051c12d9ebbf7606d41047fea96 /src/libnest2d/libnest2d.h | |
parent | 3ddaccb6410478ad02d8c0e02d6d8e6eb1785b9f (diff) |
WIP: Moved sources int src/, separated most of the source code from Perl.
The XS was left only for the unit / integration tests, and it links
libslic3r only. No wxWidgets are allowed to be used from Perl starting
from now.
Diffstat (limited to 'src/libnest2d/libnest2d.h')
-rw-r--r-- | src/libnest2d/libnest2d.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/libnest2d/libnest2d.h b/src/libnest2d/libnest2d.h new file mode 100644 index 000000000..bfd88f4f5 --- /dev/null +++ b/src/libnest2d/libnest2d.h @@ -0,0 +1,42 @@ +#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> + +// We include the stock optimizers for local and global optimization +#include <libnest2d/optimizers/subplex.hpp> // Local subplex for NfpPlacer +#include <libnest2d/optimizers/genetic.hpp> // Genetic for min. bounding box + +#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 Circle = _Circle<PointImpl>; + +using Item = _Item<PolygonImpl>; +using Rectangle = _Rectangle<PolygonImpl>; + +using PackGroup = _PackGroup<PolygonImpl>; +using IndexedPackGroup = _IndexedPackGroup<PolygonImpl>; + +using FillerSelection = selections::_FillerSelection<PolygonImpl>; +using FirstFitSelection = selections::_FirstFitSelection<PolygonImpl>; +using DJDHeuristic = selections::_DJDHeuristic<PolygonImpl>; + +using NfpPlacer = placers::_NofitPolyPlacer<PolygonImpl>; +using BottomLeftPlacer = placers::_BottomLeftPlacer<PolygonImpl>; + +} + +#endif // LIBNEST2D_H |