PrusaSlicer-NonPlainar/xs/src/libnest2d
2018-07-20 09:01:24 +02:00
..
cmake_modules Change to firstfit selection because DJD needs further testing. 2018-07-16 16:07:29 +02:00
examples Small objects can now fit inside free space surrounded by objects. 2018-07-20 09:01:24 +02:00
libnest2d Small objects can now fit inside free space surrounded by objects. 2018-07-20 09:01:24 +02:00
tests Change to firstfit selection because DJD needs further testing. 2018-07-16 16:07:29 +02:00
tools Change to firstfit selection because DJD needs further testing. 2018-07-16 16:07:29 +02:00
CMakeLists.txt New objectfunction that makes a proper circle shaped pile on arrange. 2018-07-17 12:04:06 +02:00
libnest2d.h Change to firstfit selection because DJD needs further testing. 2018-07-16 16:07:29 +02:00
LICENSE.txt Working arrange_objects with DJD selection heuristic and a bottom-left placement strategy. 2018-05-17 10:37:26 +02:00
README.md Incorporating performance optimizations from libnest2d 2018-06-28 16:14:17 +02:00

Introduction

Libnest2D is a library and framework for the 2D bin packaging problem. Inspired from the SVGNest Javascript library the project is
built from scratch in C++11. The library is written with a policy that it should be usable out of the box with a very simple interface but has to be customizable to the very core as well. The algorithms are defined in a header only fashion with templated geometry types. These geometries can have custom or already existing implementation to avoid copying or having unnecessary dependencies.

A default backend is provided if the user of the library just wants to use it out of the box without additional integration. The default backend is reasonably fast and robust, being built on top of boost geometry and the polyclipping library. Usage of this default backend implies the dependency on these packages as well as the compilation of the backend itself (The default backend is not yet header only).

This software is currently under construction and lacks a throughout documentation and some essential algorithms as well. At this stage it works well for rectangles and convex closed polygons without considering holes and concavities.

Holes and non-convex polygons will be usable in the near future as well.

References