Group similar shells

   1965   4   1
User Avatar
Member
55 posts
Joined: April 2019
Offline
Hi,

How can I group similar polygon shells based on vertices/points count?
VFX Supervisor | CG Artist

http://yasinhasanian.com/ [yasinhasanian.com]
User Avatar
Member
648 posts
Joined: July 2005
Offline
see attached,
using partition sop to grab the segment attribute.

Attachments:
cluster_by_ptnum.hiplc (246.4 KB)

User Avatar
Member
55 posts
Joined: April 2019
Offline
cpb
see attached,
using partition sop to grab the segment attribute.
Thanks for the reply. It seems to be doing what I was asking although the shells in one cluster don't have exactly same vertex count which is probably a matter of tweaking parameters? I wish there was an easier way to do it as the clustering attribute vop seems quite complex. Isn't there a way to do the clustering with the built-in cluster node?
VFX Supervisor | CG Artist

http://yasinhasanian.com/ [yasinhasanian.com]
User Avatar
Member
648 posts
Joined: July 2005
Offline
yep just use the shell pointcount (@np in this case) as the partition attribute.
Also cluster works with the attribute if you want group numbers starting from 0.

Attachments:
cluster_by_exact_ptnum.hiplc (97.9 KB)

User Avatar
Member
55 posts
Joined: April 2019
Offline
That's great! Thanks a lot for the help!
VFX Supervisor | CG Artist

http://yasinhasanian.com/ [yasinhasanian.com]
  • Quick Links