removevertex VEX function

   2457   2   2
User Avatar
Member
224 posts
Joined: June 2009
Offline
How come there is no removevertex VEX function?

I can add a vertex, using the addvertex function [www.sidefx.com].

I also know that I can delete a point using the removepoint function [www.sidefx.com].

But that point might be shared by other vertices, so if I delete the point, I might also be inadvertently deleting other vertices. Also, I can of course unique all points using the fuse sop, but that seems like it should be unnecessary (and the point-vertex relationships may be important to keep).

I just want to delete the vertex, but leave the point behind. Any way to do this in vex?
Patrick
User Avatar
Member
476 posts
Joined: July 2005
Offline
Hi,

it looks like there is no inbuild function . But try this workaround:
1. add dummy point
2. rewire vertex (to be deleted) to dummy point
3. remove dummy point
All can be encapsulated into a function (check attached file).

Attachments:
remove_vertex.hipnc (70.3 KB)

User Avatar
Member
224 posts
Joined: June 2009
Offline
Thanks - it seems like a good workaround, I will try it.
Patrick
  • Quick Links