The best way to do this will depend on your language and the technical aspects of your code.
It also sounds like you should be considering the application of Generative Design here, as you’re *making stuff* and looking for a variety of results based on an ideal criteria. Letting the genetic algorithm explore the space one by one may be a better fit than asking for the 30 best. Also, currently you’re looking at only ONE evaluation, but what happens when you get two or three or n different criteria? The ‘top 30’ suddenly becomes subjective.
Ah, I should have said this is a pure python loop…
The criteria is largest area… The other items are just attached to the shape.
Reason I’m not using Autodesk’s GD on this one is it’s purely mathematical measurement criteria is no subjective and graphics aren’t at all important so just Python should be faster.
Also… I’d need more than one list if I did it how you suggested?
It’s something for work so I can’t really share it…
But basically I’ve got…
inputs
big loop
smaller loops
Output = [coordinates relating to object] , size of object , rotation of object.
I want my output to be:
[coordinates relating to object 1] , size of object 1 , rotation of object 1, [coordinates relating to object 2] , size of object 2 , rotation of object 2, [coordinates relating to object 3] , size of object 3 , rotation of object 3