pub enum TwoDAlgorithm {
Show 19 variants
Auto,
MaxRects,
MaxRectsBestShortSideFit,
MaxRectsBestLongSideFit,
MaxRectsBottomLeft,
MaxRectsContactPoint,
Skyline,
SkylineMinWaste,
Guillotine,
GuillotineBestShortSideFit,
GuillotineBestLongSideFit,
GuillotineShorterLeftoverAxis,
GuillotineLongerLeftoverAxis,
GuillotineMinAreaSplit,
GuillotineMaxAreaSplit,
NextFitDecreasingHeight,
FirstFitDecreasingHeight,
BestFitDecreasingHeight,
MultiStart,
}Expand description
Algorithm selector for solve_2d.
Variants§
Auto
Try multiple strategies and return the best.
MaxRects
Classic MaxRects best-area-fit construction.
MaxRectsBestShortSideFit
MaxRects with best-short-side-fit placement scoring.
MaxRectsBestLongSideFit
MaxRects with best-long-side-fit placement scoring.
MaxRectsBottomLeft
MaxRects with bottom-left placement scoring.
MaxRectsContactPoint
MaxRects with contact-point placement scoring.
Skyline
Skyline-based construction.
SkylineMinWaste
Skyline construction ranked by minimum waste.
Guillotine
Guillotine beam search.
GuillotineBestShortSideFit
Guillotine beam search with best-short-side-fit candidate ranking.
GuillotineBestLongSideFit
Guillotine beam search with best-long-side-fit candidate ranking.
GuillotineShorterLeftoverAxis
Guillotine beam search with shorter-leftover-axis split selection.
GuillotineLongerLeftoverAxis
Guillotine beam search with longer-leftover-axis split selection.
GuillotineMinAreaSplit
Guillotine beam search with minimum-area split selection.
GuillotineMaxAreaSplit
Guillotine beam search with maximum-area split selection.
NextFitDecreasingHeight
Next-fit decreasing height shelf heuristic.
FirstFitDecreasingHeight
First-fit decreasing height shelf heuristic.
BestFitDecreasingHeight
Best-fit decreasing height shelf heuristic.
MultiStart
Multistart MaxRects meta-strategy.
Trait Implementations§
Source§impl Clone for TwoDAlgorithm
impl Clone for TwoDAlgorithm
Source§fn clone(&self) -> TwoDAlgorithm
fn clone(&self) -> TwoDAlgorithm
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more