Notifications
Clear all
[Closed] Get edge using connected verts?
Jan 06, 2014 5:03 pm
Hello all,
Im looking to get the edge between two vertices, I’ve been combing through the help, searching through forums, and have come up with nothing. Honestly it doesn’t seem to hard, but polyOp.getEdgesUsingVert gives me all edges connected to the vertices, not only the one they both share. Is there a property of the edge that includes the vertex it is drawn from or some other way i could get the only edge two vertices share?
Thanks
2 Replies
Jan 06, 2014 5:03 pm
(polyop.getEdgesUsingVert $ v1) * (polyop.getEdgesUsingVert $ v2)
will return a bitarray with the shared edge. the "*" operator basically performs a bitwise [b]AND[/b] across the two bitarrays returned for each vert.
Jan 06, 2014 5:03 pm
So the * compares the two arrays and finds the similarities?
Thanks very much for the reply