Hi there, since the problem came up in a recent thread here is my latest attempt:
Grid_3D.gh (108.9 KB)
You’ll need anemone & impala to run it
Many thanks to my friend @DanielK1 who collaborated with me on this and did a lot of the scripting of this definition!