I'm trying to build a large BMesh from scratch in python. I know you can add vertices (or faces or edges) to a BMesh one at a time:
for v in verts:
face = bme.verts.new(v)
but this is really slow for many vertices/edges/faces. Is there a batch way to add many vertices at once, avoiding the python overhead?
Googling around I found that the old mesh supported foreach_set()
and foreach_get()
which were supposed to be fast, but I gather those don't work anymore?
Mesh
not abmesh
and still work. AlsoMesh.from_pydata(...)
is pretty quick. $\endgroup$