r/programmingrequests • • Jul 16 '24

Solved✔️ rectangle packing

hi, i tried to do this myself but i am completely illiterate in any & all types of code so here i am.

just need a simple 2d rectangle packing algorithm. i know i have too many objects to fit in the given space, so just do whatever fits best. prioritize filling the short end and don’t rotate the objects.

my box dimensions are 83x45

objects: 24x20 36x24 16x12 9x7 6x4 12.5x10.25 11.25x8.75 12x9.5 10x8 13.25x13.25 36x24 4.5x9.5 16x12 16x12 12.5x10.25 10x8 10x8 10x8 10x8

thanks in advance :)

1 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/AutoModerator Oct 27 '24

This post was automatically marked as solved but you can manually change this.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.