I'm trying to get a circular order of connected edges to a vertex.
From the bmesh module, we can have a BMEdgeSeq of linked edges to a vertex with the link_edges function. But the edges list is not ordered (in a circular way)
It is possible from the documentation of BMEdgeSeq to sort with a key, but, where are the possible key ?
Last solution, compute myself an angle between each edge to find a circular order (clockwise or not), but that seems heavy for meshes with a lot of vertices.
Any ideas ?
Thx in advance.
-vert.normal
project the edge vectors onto the plane defined by the normal (the face of the clock) and sort from arbitrary edge. Oh and yeah would only need 12 o'clock if first was needed. $\endgroup$BMLoops
$\endgroup$