I need tessellate a face, and in OBJECT mode works, but if you create a new face in EDIT mode, I cannot use it before back to OBJECT mode.
The problem is that mymesh vertices does not contain the new vertex, so I was thinking to use BMESH, but the tessellate needs a mesh as first parameter. How can get this?
Here an example of my idea:
if myobject.mode != 'EDIT':
mymesh = myobj.data
# Tesselate the polygon
tris = mesh_utils.ngon_tessellate(mymesh, myvertices) # WORKS
else:
bm = bmesh.from_edit_mesh(myobject.data)
# Tesselate the polygon
tris = mesh_utils.ngon_tessellate(Here_the_verts, how?, myvertices)