Need help writing script
Need help writing script
(OP)
I need some help getting started. In simple terms, I want a script that will tell me how many jelly beans I can fit into different standard size jars.
Here is Jelly Bean-A. How many can I fit into Jar-A or how many can I fit info Jar-B, etc.
Here is Jelly Bean-A. How many can I fit into Jar-A or how many can I fit info Jar-B, etc.





RE: Need help writing script
Probably you will need to work with Measure Inertia workbench in order to measure the volumes of the Jar and Jelly Bean and then you can simply divide the values.
Regards
Fernando
RE: Need help writing script
RE: Need help writing script
RE: Need help writing script
If you are really looking to find the optimal packing for a set of objects with an arbitrary shape (jelly bean) withing a given volume you should look into Space Packing algorithms. But for large sets this can take a long time so is better done in more optimized code, not script.
Daniel Bosia at Arup AGU has done some interesting work in this field -> Watercube Stadium in Beijing amongst others
/Thomas