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

Download history 34/week @ 2024-03-17 329/week @ 2024-03-24 98/week @ 2024-03-31 64/week @ 2024-04-07 79/week @ 2024-04-14 204/week @ 2024-04-21 89/week @ 2024-04-28 87/week @ 2024-05-05 42/week @ 2024-05-19 44/week @ 2024-05-26 44/week @ 2024-06-02 3/week @ 2024-06-09 7/week @ 2024-06-16

103 downloads per month
Used in 2 crates (via chuot-macros)

MIT/Apache

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 from rectpack2D 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

No runtime deps