/dp_rect_pack

Rectangle packing library for C++

Primary LanguageC++zlib LicenseZlib

Rectangle packing library for C++

Features

  • Good packing (see the gallery)
  • Multipage and infinite single page modes
  • Custom page padding and spacing between rectangles
  • Type agnostic
  • zlib license

Documentation

The documentation is embedded in the library and is also available online at https://danpla.github.io/dp_rect_pack.

See demo/main.cpp for an example of how to use the library.

Source code repository and issue tracker

https://github.com/danpla/dp_rect_pack