Setable anisotropy of trabeculae in Voronoi 3D diagram

Hello Everyone.
I already have a simple .gh script to create 3D Voronoi diagram structure with constant anisotropy factor. It is possible by scaling and rescaling a whole structure. There is additionally option to set the porosity gradient, but it is not very important now.

ani_3D.gh (10.4 KB)

Do you maybe know if it is possible to set different anisotropy factor in different place in the cube? For example…

  • from 0 to 2mm - 2.0 ani. factor and
  • from 2 to 4 mm - 1.5 ani. factor

I hope that you know what I mean, but for better view I think about something like this:

Divide cube into X section and change anisotropy between them.

Could you please help me in some way? Thank you in advance!