Jump to content

Grouping Collinear Points on a Polyline


Recommended Posts

Hi there, new Houdini user here (couple months in).

I'd like to group some collinear points along a polyline. And when I say polyline, I mean an edge I created using a curve with a primitive type of "polygon".


Is there a simple way of doing this procedurally?



I plan on running a polywire on this, then beveling edges at these points, but I would like to avoid beveling the edges on the collinear ones.

Just a warning that I am an artist with limited scripting knowledge (I am beginning to learn a bit of vex and have done a small amount of python before). If the answer involves a ton of code, there is a good chance it will be lost on me :P


Thank you


Link to comment
Share on other sites

Thank you nuki!

I had some errors opening your file, so I copied the code out into a new file and it works great. It will take me some time to decipher and fully understand how this is working, but it is just about the right complexity for me to dig into. And the comments really help a lot, I probably wouldn't figure it out without them :)


Link to comment
Share on other sites

if you wanna get around vex - one super helpful thing in the editor is the quick lookup on functions. if the cursor is on a function you can just press f1 and it brings up the respective docs page :wub:


Edit: oh yeah, the error on open probably is a licensing thing (I'm running houdini indie)

Edited by nuki
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.

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...