6 releases
0.3.3 | Mar 12, 2023 |
---|---|
0.3.2 | Aug 8, 2022 |
0.2.0 | Aug 4, 2022 |
0.1.0 | Aug 4, 2022 |
#1849 in Algorithms
103 downloads per month
Used in 2 crates
(via chuot-macros)
34KB
820 lines
Packr2
Implements some relevant of packing algorithms, currently StripPacker
(simplest), SkylinePacker
(good for unsorted data)
and SplitPacker
(best for bake data using the pack
function)
- It uses almost the same interface as
texture_packer
. - The
SplitPacker
was ported fromrectpack2D
but it sorts all split globably
Work left
- Implement
pack_with_best_size
function to find the best packing with the lower used area
lib.rs
:
Rectangle packing algorithm