Python Forum
How many boxes fit on a pallette?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How many boxes fit on a pallette?
#1
My gf has a new job with a company which exports agro-chemicals.

She needs to know how many cartons fit on a pallette.

The inner dimensions of a 20' container: width =2.352m,height=2.348m,length=5.902m

The pallettes are 1.14m by 1.14m, so theoretically, the boxes could go over the edges of the pallette by 1cm and 2 pallettes would still fit in the width of the container with 3.2cm space.

10 such pallettes fit on the floor area of a 20' container.

A 20' container from China to Peru costs about US$10 000, so it is important to make maximum use of the available space

I already made her a little web page to do this calculation, but she is not too great with arithmetic.

I would like to make her a little "game" of "push the boxes". She would be able to imagine the situation better then.

Could I use pygame to do this??

2D would be good enough, 3D ideal.

I only need to calculate 1 layer. The height is fixed.

The screen should show a square (a pallette), 116 * 116 and an area to make the boxes with inputs for length, width and number.

She enters the sizes and number of the boxes and they are created, then she pushes them onto the pallette.

Hopefully, they could snap to the edge of the pallette and to each other.

She would need to rotate some boxes 90 degrees.

Most boxes must stand upright because they contain bottles, but some contain bags, so may be placed on their sides.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020