0
$\begingroup$

I'm working on a script which generates a bunch of cuboids with integer length sides. From there I would like to effectively turn each face into a grid in which each vertex is aligned to the world grid (i.e. on each integer coordinate). Currently I have been looking at using the subdivide operation (bmesh.ops.subdivide_edges) to make this work, but this seems long-winded and time-consuming (requires getting all the edges from each operation, finding out which to use for the next, etc). Is there a better way of doing this, or would it be easier to do repeated extrusion when constructing the cuboid (i.e. extrude by 1, n times, rather than extrude by n once)? The way I would do this manually is using a loop cut, can this be done with bmesh?

For info, I'm using blender 2.81a and hoping to do this purely within bmesh.

Current result Intended result

Thanks in advance, Jacob

$\endgroup$
4
  • $\begingroup$ Related blender.stackexchange.com/a/102239/15543 Ultimately yes would create an AxB grid and extrude C. $\endgroup$
    – batFINGER
    Commented Apr 8, 2020 at 16:53
  • $\begingroup$ Thanks, I'll look into implementing something similar $\endgroup$ Commented Apr 8, 2020 at 17:12
  • $\begingroup$ Thanks for directing me to that post! Implemented the same method, worked perfectly, cheers. $\endgroup$ Commented Apr 8, 2020 at 17:26
  • $\begingroup$ Does this answer your question? Subdividing cubes at different intervals $\endgroup$
    – brockmann
    Commented Apr 8, 2020 at 17:50

1 Answer 1

0
$\begingroup$

To anyone else looking to implement this, please see the link batFINGER directed me to: link

$\endgroup$

You must log in to answer this question.

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