Grouping of interconnected points on a Geo

   595   3   0
User Avatar
Member
1 posts
Joined: 5月 2021
Offline
Hello there I'm a new person to Houdini and running into an issue.

I have a Geo and I'm trying to get where all the line merge into a single point to place said points into a group instead of manually selecting each vertex.

I started with- int near = nearpoints(0,v@P,0.01,5);but kinda had a brain melt after that. Vex is also very new to me as well


Any help is greatly appreciated!
User Avatar
Member
133 posts
Joined: 3月 2016
Offline
You might want to provide and example of what you are trying to do. Also do you actually mean vertex or point. If new then the way houdini deals with all this is slightly different to other 3D apps - This explains quite nicely - https://www.tokeru.com/cgwiki/Points_and_Verts_and_Prims#Shadesails_and_verts_and_prims [www.tokeru.com]
Love Houdini
User Avatar
Member
4483 posts
Joined: 2月 2012
Online
Hi,

Here is one way using pcfind:

int maxpts = chi("maxpts");
int pts [ ] = pcfind ( 0, "P", @P, ch("radius"), maxpts );
if ( len ( pts ) == maxpts )
    i@group_pts = 1;

Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
User Avatar
Member
133 posts
Joined: 3月 2016
Offline
ooh that's very nice :-)
Love Houdini
  • Quick Links