Jump to content
kefex

HDK equivalent to VEX primhedge? How to find edge-neighbours of face prim?

Recommended Posts

If I have a face primitive, how do I find the faces which share an edge with the face? I don't seem to be able to find a function in GEO_HedgeInterface which will do this.

And GU_Detail::buildRingZeroPrimitives appears to return all faces which share a point with the face in question, which is not what I need.

In VEX, I've done this in a attribute wrangle which runs over primitives by calling primhedge(), which gives me a half-edge in the face, which I can then use to circulate around the face and query for edge neighbours.

Any help immensely appreciated!

~Kevin

Share this post


Link to post
Share on other sites

take a look a GEO_Closure. or, if you're using GEO_HedgeInterface just get prim edges from vertices and next find prims which are sharing these edge. HERE is an example to a somewhat similar problem ...

hth.

petz

Edited by petz

Share this post


Link to post
Share on other sites
13 hours ago, petz said:

take a look a GEO_Closure. or, if you're using GEO_HedgeInterface just get prim edges from vertices and next find prims which are sharing these edge. HERE is an example to a somewhat similar problem ...

hth.

petz

Ah, so if I have a face primitive, take two consecutive points on the prim and pass them to findHedgeWithEndPts, use that half-edge. Thanks for that, petz!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×