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

#1062 in Algorithms

Download history 48/week @ 2024-02-18 22/week @ 2024-02-25 34/week @ 2024-03-17 330/week @ 2024-03-24 143/week @ 2024-03-31

507 downloads per month

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