Let's say I have 4 vertices and want to create a quad face with bmesh. Is there way to figure out the right order of the vertices to not get a face like this face with improper vertex order

But rather a face like this.
face with correct vertex order


1 Answer 1


From 4 verts you can construct 6 edges: throw away 2 longest that don't share a vert and from there you get the correct vertex order.

  • 1
    $\begingroup$ Didn't thought about that! So simple and so genius! Thanks alot! $\endgroup$ Mar 3, 2015 at 19:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .