point grouping by distance to other group members

   5540   5   0
User Avatar
Member
238 posts
Joined: Nov. 2013
Offline
hey,
I like to group points in proximity to points in an other group (cluster centers). cant figure out how to filter in houdini.

Attachments:
pointCluster.hip (70.3 KB)

http://www.sekowfx.com [www.sekowfx.com]
User Avatar
Member
7750 posts
Joined: July 2005
Offline
Perhaps convert your group to an attribute, use AttribTransfer, then convert back to a group.

Attachments:
pointcluster_ViaAttrib.hipnc (75.5 KB)

User Avatar
Member
238 posts
Joined: Nov. 2013
Offline
Thanks Edward. That is plausible.
Ive changed the setup a bit, now the $PT (wrapped into clsCenterID attr) is transferred over. Works good. But I would like to have continuous order (0,1,2..,n) instead of the actual $PT (just to make it convenient).

Aaaand then I would need individual groups according to the clsCenterID.

Sorry I am new to Houdini and having some difficulties in how things work.
I am used to work in Softimage ICE, where I could switch contexts, build up helper arrays and look up attributes inside one graph.

Thanks in advance, help is much appreciated.

-Sebastian

Attachments:
pointcluster_viaattrib_634.hipnc (77.2 KB)

http://www.sekowfx.com [www.sekowfx.com]
User Avatar
Member
238 posts
Joined: Nov. 2013
Offline
ok, actually this was pretty easy just parameterizing the clsCenterID…
still the question remains how I create serval groups according that attribute.

Attachments:
pointcluster_viaattrib_634.hipnc (70.1 KB)

http://www.sekowfx.com [www.sekowfx.com]
User Avatar
Member
7750 posts
Joined: July 2005
Offline
Try appending a Partition SOP: Entity = Points, Rule = cluster$CLSCENTERID

This creates the appropriately named groups based on the value of $CLSCENTERID. Unfortunately, this also creates a group named cluster0 containing all the other points so you will have to append a Group SOP to delete it.

Is this what you're looking for?
User Avatar
Member
238 posts
Joined: Nov. 2013
Offline
jip thats is exactly what I was looking for.
thanks a bunch!

.sebastian
http://www.sekowfx.com [www.sekowfx.com]
  • Quick Links