When starting to write algorithm for 3d Container loading software
it is hard to understand how to utilize space while adding cargo to it. I give you my algorithm / structure of space utilization for 3d container packing software.
Notes:
Coordinates for Bin
starts at (0,0,0
):[length, height, width
] and goes till defined bin size.
Each time, when adding Cargo
to Bin
you have to create new unmodifiable Bin
with added cargo to it (Example in demo algorithm).
Core does not provide any restrictions when adding cargo, cargo can overlap, if not respected empty space.
In Bin
, Cargo
rotates at most on six positions / sides.
Detailed info
mvn clean install
java -jar .\demo\target\demo-jar-with-dependencies.jar
java3d
libraries?You may find solution in java3d folder ;)