I want to create a cube in bmesh at a specific position. How can I accomplish this?

I'm interested in as efficient solution as possible btw... there will be A LOT of cubes to create every frame.

  • 2
    $\begingroup$ What have you tried that doesn't work, could you show us what you have so far? $\endgroup$ Apr 27 at 10:50
  • $\begingroup$ I've answered my own question instead - someone at blender.chat helped me with bmesh api. $\endgroup$
    – korda
    Apr 27 at 14:03

A person going by the nick @Random helped me with this on blender.chat. The solution was to pass translation matrix to create_cube op.

bmesh.ops.create_cube(bm, size=0.5, matrix=mathutils.Matrix.Translation(current_point))


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.