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

#1913 in Algorithms

Download history 55/week @ 2024-03-18 309/week @ 2024-03-25 104/week @ 2024-04-01 68/week @ 2024-04-08 97/week @ 2024-04-15 201/week @ 2024-04-22 66/week @ 2024-04-29 84/week @ 2024-05-06 47/week @ 2024-05-20 46/week @ 2024-05-27 37/week @ 2024-06-03 4/week @ 2024-06-10 6/week @ 2024-06-17 7/week @ 2024-06-24

61 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