I was messing around with bmesh and tried to use the mesh_to_bmesh operation, however, I was returned this error...

NotImplementedError: mesh_to_bmesh: keyword "mesh" type 4 not working yet!

The best I can tell this is saying that the function hasn't actually been implemented into the code and is just a placeholder. If this is correct, can anybody tell me if there is another way to transfer a mesh back into a bmesh object? Thanks.

  • $\begingroup$ have you tried bmesh.from_mesh(mesh) $\endgroup$ – Chebhou Jul 30 '15 at 9:00
  • $\begingroup$ @Chebhou Just did and that did the trick. Thanks. $\endgroup$ – Glyph Jul 30 '15 at 19:37

The proper function to be used is the bm.from_mesh(me) function where bm is the bmesh object being transferred to and me is the mesh. Also for the reverse operation we can use bm.to_mesh(me) which will load the bmesh data back into the mesh.

For code example see the template bmesh_simple.py which is included in blender text editor.

some of the bmesh operation didn't work yet like bmesh.ops.bmesh_to_mesh , mesh.ops.mesh_to_bmesh and bmesh.ops.object_load_bmesh, the only note is that the DOC says :

this bmop is private


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.