Hi all,
I was wondering how to generate the Hilbert Curve for a square three-dimensional lattice L x L x L, where L is the linear size. I would like to have sizes with L even (let's say L = 2,4,6,8,10). I tried the command
HilbertCurve[n,3]
and it works well for n=1,2, by representing correctly the Hilbert Curve for the 3D lattice with L = 2, 4 respectively. However, if I put n=3, I got the Hilbert Curve for the 8x8x8 lattice. I don't know how it works for the 6x6x6 lattice.
Any advice?
Thanks a lot, G.