BMesh and Ngons

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Post Reply
zna
Posts: 0
Joined: Thu Oct 24, 2013 12:42 am

BMesh and Ngons

Post by zna » Thu Oct 24, 2013 12:34 pm

I have a list of >4 vertices (all on the same z coordinate) and want to make an ngon out of them. My problem is that if i use bm.verts.new(list), the resulting ngon overlaps itself.
I tried creating the appropiate edges first, but even then the result is a mess.
It does not seem to matter if the Ngon would be convex or not.
What do i need to do to create a proper ngon with bmesh?

CoDEmanX
Posts: 0
Joined: Sun Apr 05, 2009 7:42 pm
Location: Germany

Post by CoDEmanX » Sat Oct 26, 2013 4:03 pm

maybe sort the verts clockwise?
can you post a screenshot of the desired result?
I'm sitting, waiting, wishing, building Blender in superstition...

Post Reply