Crate binpack2d

source ·
Expand description

binpack2d is a library for performing two-dimensional rectangle bin-packing, based on Jukka Jylänki’s C++ implementation of RectangleBinPack.

Re-exports

pub use crate::binpack::bin_new;
pub use crate::binpack::bin_with_capacity;
pub use crate::binpack::pack_bins;
pub use crate::binpack::BinError;
pub use crate::binpack::BinPacker;
pub use crate::binpack::BinType;
pub use crate::binpack::guillotine;
pub use crate::binpack::maxrects;
pub use crate::dimension::Dimension;
pub use crate::rectangle::Rectangle;

Modules

Provides a bin packing trait with associated functions to perform bin packing independently from specific bin packer algorithms.
A structure representing the dimension of an object to be placed in a bin.
A structure that represents the placement of a single object in a bin.