Jump to content

getting neighbours in python


friedvinyl

Recommended Posts

hey guys, just wondering if there is a python equivalent to the vex getneighbours function. i'm trying to get a list composed of a set of two points that make up each edge.

as of right now i'm using the "pointneighbours" hscript function through "hscriptExpression", which works great for closed objects where points that share an edge also share two primitives. unfortunately, if i'm trying to get the edges of a polygon curve, or an object that has an open edge, that approach no longer works since points that make up certain edges don't necessarily share two primitives.

of course, if there's an easy way of getting edge info that'd be fantastic. hou.edges()? (or a way of splitting each edge of a curve into a primitive on the sop level)

(running 9.5)

Link to comment
Share on other sites

  • 2 weeks later...

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