Detecting Shared Edges

No you can’t because there can be multiple points in the same location.

Richard

Is there a way to detect if two faces share a specific edge in a script or plugin?

Thanks in advance.

Ahhhh…. adjacency information. Not currently. I could add that for 6.0, or at least provide a really fast mechanism for building adjacency information. Internally in 6.0 I have a new optimized adjacency builder (much better than in previous releases) and I don’t see why I can’t expose that so that plug-in writers can get access to the info.

Until then, you’ll have to do it the slow way. <!– s:-( –><img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":-(" title="Sad" /><!– s:-( –> Read in all of the faces determine the edges they use (by position since points in the same place don’t necessarily use the same indexed point) and match ’em up.

Richard

Thanks for the info Richard, I haven’t had the chance to follow up until now.

You suggest using point position to determine shared edges. I assume you mean comparing the position of points in two faces of interest to see if two or more points are closer than some small value.

Can the object’s (not face) point index be used instead? That is, for two faces of interest, collect the object point indices for each and then compare the object point indices looking for 2 or more matches.

Got it, I’ll go with the closest approach scheme.

You must be logged in to reply in this thread.