Alien
June 9, 2021, 9:18am
1
I’ve just discovered that it matters how you ‘draw’ your rectangle for packing.
If I join the points in a different order the packing nodes puts my items outside my shape!
If I put the points in this order it’s happy:
But if I don’t start with the bottom right point it doesn’t pack properly:
Anyone know why? @jacob.small maybe?
@Alien ,
You can create Patch from curves, than get Perimeter curves.
Maybe it will fix directions?
Alien
June 9, 2021, 1:04pm
3
Well the simple fix is to make sure the rectangle’s first point is the bottom right…
It’s very odd though!
Packing requires the rectangles to have been created in a specific way.
opened 06:12PM - 28 Jan 21 UTC
bug
## Toolkit version
1.1.1
## What did you do?
Used the bin packing node… on rectangles created in many ways
## What did you expect to see?
The containers to be packed consistently
## What did you see instead?
All containers had their contents packed in a different way
![image (3)](https://user-images.githubusercontent.com/29869395/106180523-65f64c80-616a-11eb-8d75-1b4b254f909a.png)
Rename this file to remove the extra `.txt` extension for sample.
[Bin Packing issues.dyn.txt](https://github.com/DynamoDS/RefineryToolkits/files/5889234/Bin.Packing.issues.dyn.txt)
Note that it gets even odder when yous tart to rotate your rectangles.
This graph can be configured to explore all the possible bug states (note there are a lot of them). Periodic run mode recommended for quick visual exploration.
Toolkit Packing Issues.dyn (71.9 KB)
1 Like
Alien
June 9, 2021, 10:42pm
6
Rotate my rectangles?
You mean like a diamond into a square?
More like… if my container wasn’t XY aligned.
Alien
June 9, 2021, 10:43pm
8
Ah, now that’d be silly… Get that container straight before you start!