Hi everyone,
I have 3DSMax meshes with a face count between 1.000.000 and 3.000.000 faces, consisting of multiple elements.
I would like to keep the elements with the highest face count and delete the rest.
I already have a function that detaches all elements one by one, then counts the face count per detached element and only keeps the element that has the most faces.
Unfortunately this function is really slow, and 3DSMax is sometimes using up to 50 gigabytes of RAM to do the detaching.
So I wanted to ask you if there is a smarter way to do this.
I thought of several other ways, for example shoot a ray from a viewport and select the element that is hit by the ray. But I have no clue of how to do that 
Or could 3DSMax emulate a mouse click somewhere in the viewport and select the element that is click on?
Because I always know where the largest element is located, so that could be a help.
Thanks for any feedback!
