Creating Voxel of different sizes in 1 part Brep

Hi,

How do I make a much smaller voxel size and a larger voxel size in the following regions as shown?

Do I say based on face area:
If face area is smaller than some value, finer voxel grids?

If this is the case, how do i go about it?

So far, I am only able to create a uniform voxel size throughout. I am unsure of how to change the sizes locally by code.

Thanks.

Hello
you can use voxel subdivision. If I assume you are using cubes, you subdivide cube by 2, so one cube becomes 8 cubes etc. or subdivide by 3, so 27 cubes.

and surely others example somewhere