Comments (3)
Trick: You need to virtually increase all box dimensions by half the space you need between all the boxes, increase your container dimensions by 1 time the space, perform your calculation, and display your boxes with their original sizes.
from 3dcontainerpacking.
Yes, that's a good idea, I thought about that. But it also adds padding where boxes connect to the room, which I don't want. Only between boxes. Because I use it for 3D nesting to remove elements and to separate the pieces I have a minimum space.
from 3dcontainerpacking.
I do that in https://github.com/treeDiM/StackBuilder and it works great.
Before making your palletization computation, you need to increase by 1 space the length +width dimensions of your container, but after the computation, you need to offset every box position by -0.5*space.
x -= 0.5 * space;
y = -0.5 * space;
Then, you do have a set of boxes with spaces that do lean on your stacking area boundaries.
from 3dcontainerpacking.
Related Issues (20)
- Rotation and Stacking HOT 8
- Orientation HOT 3
- How to run the app HOT 1
- Can you publish this lib as Nuget package HOT 2
- Bug + fix found in reference implementation HOT 3
- Restrict rotations of boxes and container
- Question: Find largest containers that fits inside volume HOT 2
- nuget update for fix HOT 1
- Pack all items - many available boxes HOT 1
- Algorithm not giving result HOT 2
- Container with already packed items HOT 1
- I would like to consult with you about the packing project
- Invalid layer index reference
- Run the algorithm on web
- Does putting heavy boxes first makes sense?
- Avoiding packing items at corners due to rounded corners of container
- How to modify the code so that items doesn't go above each other HOT 1
- When duplicating the cargo, 3x as many containers are created
- Dealing with floats.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 3dcontainerpacking.