Identify multiple parts in an STL

Hello, I’m learning threejs, have a small doubt.

I have an STL file that is loaded using STLLoader, That STL file may have multiple parts (I can easily visible that in Microsoft 3D Builder), My doubt is how to get these multiple parts information in Three JS ?

Possible to identify how many disconnected objects are there?
Possible to get those objects face numbers separately?
Any predefined methods are available are three in Three JS? If not what the logic I need to apply?

Thanks,
Jezz…

The loader returns a single geometry right now. So i think it’s not possible to do the stuff you’ve mentioned in your post. Also see this github issue:

1 Like