Jump to content

help to remove vertices with 2 connections, etc


Recommended Posts

Hi, everyone! I'm trying to convert blender's grease pencil strokes into actual polygonal geometry. So first i convert it to polylines in blender itself.
Then, in Houdini i fuse it  several times to get 'okeish' result.
But what I need before next fuse is:
-to dissolve vertices with only 2 edges connected.  (maybe 3 valency as well)
-to delete edges of length less then specified

Any ideas on how to achieve this? Thanks )

GreasePencil_cleanup01.hipnc

h2.png

Link to comment
Share on other sites

1 hour ago, tamagochy said:

Use neighbours function to get arrays and then delete points with arraylength<3. Its for vertices.

in an attribute wrangle (running in point mode) you can simply put:

//
if(neighbourcount(0,@ptnum) != 2)
  removepoint(0,@ptnum);

 

Edited by acey195
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...