Solid centroid

I’ve got a question.

What if I’ve got more then 2 solids. The object below contains 2 solids, but if it is made from more then 2 how would you make a working code?

THe code needs to collect the centroid of the combined solids and for 2 solids it seems to give me the centroid, but I want the code to be useful in any situation involving more then 2 solids

Hi @kboschJGDNZ is it something here you mean ?

3 Likes

Thanks for the code. It seems to be working for 1 element or multiple elements.:ok_hand: