I have a lot of geometry I need to fit in a printbed.
So its not possible over the solved over the volume, since i need to fit it to certain values of length width and height.
I tried it with ocotpus, but I am not even sure if it is possible.
Someone knows?
Hi Baris,
I don’t have Octopus to try out your code with, but it sounds like all you need is a properly defined fitness function which tells you how close you are from your desired fixed values.
Version ‘c’ (below) replaces slow Area with Srf EL cluster that sorts surfaces by the sum of their edge lengths. Profiler shows ~five seconds for 4422 geometry oriented BBox results - too many to see anyway, even zooming in:
Since it is quite cheap/fast to calculate the bounding box, a sampling approach might be preferable to the stochastic search approach (especially if you need to calculate it for many objects). Something like this: