How to create a gradient mesh for a 3 block volume

Hello everyone,
Im trying to create a mesh (tetmesh) for this case, where the entire center block has much higher resolution and propagates to the sides as a gradient. I’ve tried a lot of things but nothing has worked out the way I wanted it to.
reset

#create the volume
bri x 12 y 40 z 40
create vertex on curve 1 fraction 0.4
create vertex on curve 3 fraction 0.4
webcut vol 1 plane vertex 8 9 3
webcut vol 1 plane vertex 6 10 1
imprint all with volume all
merge all

Is this the kind of thing you want?

volume 1 size .0.4
volume 2 3 size 2
volume all scheme tetmesh
mesh volume all

Thanks,
Karl

Hi Karl,
Thanks for your reply, is not exactly what I am looking for, I want the resolution of volumes 2 and 3 to decrease as they move away from the central block, so that in the middle of the volumes there is still higher resolution than at the other end.

Best regards

Hi,

You may have to draw a picture because I’m not visualizing what you want. My guess is that you will need to either split curves and apply sizes at the curves or webcut volumes and apply sizes at the surfaces.

Thanks,
Karl