Brep to voxel Octree

Hi there,

I have been trying to make something like this without success.

I have come across this very simple solution, but I would like to have it filled with cubes and contained in the brep geometry as shown in the picture above.
I was wondering if any of you might have some idea about how to approach to this in Grasshopper.

Thank you.

Voxel (68.3 KB)

You have to subdivide a box into 8 boxes and continue if a box intersect with the mesh. The GH’s octree does not do what you expect.

I am afraid I don’t fully understand, can you illustrate me with an example?


1 Like

Thank you so much. I found what i was looking for.