Crate rectangle_pack
source ·Expand description
rectangle-pack
is a library focused on laying out any number of smaller rectangles
(both 2d rectangles and 3d rectangular prisms) inside any number of larger rectangles.
Structs
- A rectangular section within a target bin that takes up one or more layers
- Groups of rectangles that need to be placed into bins.
- Describes how and where an incoming rectangle was packed into the target bins
- A rectangle that we want to insert into a target bin
- Information about successfully packed rectangles.
- A bin that we’d like to play our incoming rectangles into
Enums
- An error while attempting to pack rectangles into bins.
Functions
- Select the container that has the smallest box.
- Determine how to fit a set of incoming rectangles (2d or 3d) into a set of target bins.
- The volume of the box
Type Aliases
- Incoming boxes are places into the smallest hole that will fit them.
- Given two sets of containers, which of these is the more suitable for our packing.