How can I procedurally delete this point?

   475   2   0
User Avatar
Member
128 posts
Joined: Sept. 2018
Offline
Hello hope you can help me, I just need to automatically delete points like this from my geometry.

I am assuming you check if a point has more than one neighbor and if it doesn't delete it but I am not sure how I would go about that.

Any help would be really appreciated. Thank you!
Edited by VGriffith - Jan. 18, 2024 12:01:39

Attachments:
Capture.PNG (43.1 KB)

User Avatar
Member
4540 posts
Joined: Feb. 2012
Offline
Hi,

You can do this using the neighbourcount VEX function:

int count = neighbourcount ( 0, @ptnum );
if ( count < chi("point_count") )
    removepoint ( 0, @ptnum );
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 | pragmaticvfx.gumroad.com
User Avatar
Member
128 posts
Joined: Sept. 2018
Offline
Thank you very much!
  • Quick Links