1
$\begingroup$

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.

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

1 Answer 1

2
$\begingroup$

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))

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .