kefex Posted August 6, 2017 Share Posted August 6, 2017 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 Quote Link to comment Share on other sites More sharing options...
petz Posted August 7, 2017 Share Posted August 7, 2017 (edited) 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 August 7, 2017 by petz Quote Link to comment Share on other sites More sharing options...
kefex Posted August 8, 2017 Author Share Posted August 8, 2017 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.