Skip to content

davefol/babushka

Repository files navigation

Babushka   Build Status Latest Version documentation

Babushka is a Rust library for 2D geometry algorithms, with a focus on efficient bin packing and nesting.

Features

  • 2D geometry primitives (points, segments, polygons)
  • Hierarchical primitives (piece)
  • No Fit Polygon implementation inspired by SVGNest
  • Rasterizing into Vec<u32> using the "raster" feature eg. drawing shapes with holes

No fit polygon of concave shapes nfp_0

No fit polygon of complex polygons with holes nfp_1

Importing of the terashima test file format terashima_tv001c5

Installation

Add this to your Cargo.toml:

[dependencies]

babushka = "0.1.10"

Documentation

For detailed documentation and advanced usage examples, please visit docs.rs/babushka.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Bin packing and nesting library

Resources

Stars

Watchers

Forks

Packages

No packages published