Babushka is a Rust library for 2D geometry algorithms, with a focus on efficient bin packing and nesting.
- 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
No fit polygon of complex polygons with holes
Importing of the terashima test file format
Add this to your Cargo.toml
:
[dependencies]
babushka = "0.1.10"
For detailed documentation and advanced usage examples, please visit docs.rs/babushka.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.