rectangle_pack

Type Alias BoxSizeHeuristicFn

Source
pub type BoxSizeHeuristicFn = dyn Fn(WidthHeightDepth) -> u128;
Expand description

Incoming boxes are places into the smallest hole that will fit them.

“small” vs. “large” is based on the heuristic function.

A larger heuristic means that the box is larger.