Jump to content
Sign in to follow this  

Group connected prims by poly count

Recommended Posts

Hi all

Can anyone suggest a good way to loop over geo and group connected geo by a threshold of primitive count? For eg.

- I have a mesh that has 140 000 000 prims.
- I can do a connectivity sop and split out connected pieces. Many are smaller than my threshold of say 10 000 000.
- I'd like to combine the smaller connected pieces into a group until it hits the 10 000 000 threshold and then move onto a new group etc.

Right now it creates far too many individual meshes based purely on connectivity so I'm trying to combine the smaller pieces into a more manageable chunks.


Thanks in advance!

Share this post

Link to post
Share on other sites


You can use Connectivity SOP to create a primitive attribute and then in an AttribWrangle in Primitive Run Over mode, use findattribvalcount function to count how many primitives belong to each connected piece of geometry and group them based on your threshold.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this