5
$\begingroup$

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

$\endgroup$
6
$\begingroup$

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.