algorithmic modeling for Rhino
Greetings,
I'm currently using the galapagos solver to minimize the total volume of multiple bounding boxes. Currently I have around 400 individual objects that I want to have the smallest bounding boxes possible. I thought by using galapagos to rotate each bounding box's plane it would find the best rotation for each object's bounding box, thus creating the smallest total volume.
The problem is that galapagos is taking a long time to run with around 400 fitness sliders rotating each plane. I let it test run for 15 minutes and it did not actually get any smaller volume than what I get from a default xy plane for each bounding box.
Is there a way to run galapagos successively for each individual bounding box? If this was possible it could find the best rotation of the first bounding box's plane and then move on to the next. This, obviously, would be much easier than manually switching galapagos to the next bounding box for 400ish total bounding boxes.
Any suggestions would be greatly appreciated! I apologize if this topic has been discussed, but I could not find anything specific to what I'm looking for.
Tags:
Just an update for anyone interested in this topic. I've since came to a solution that has bypassed galapagos altogether. The script is a slight variation of what Andrew Heumann provided in this post. Basically, I'm calculating the bounding box for all 3D objects at a 100 different angles and then sorting by volume to select the smallest volume bounding box for each 3D object.
This is very effective, but I'm still very interested in how one might accomplish what I was asking before. See the script for my workaround below.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by