hilbertC(s, x, y, z, dx2, dy2, dz2, dx3, dy3, dz3, dx, dy, dz)
hilbertC(s, x + s * dx, y + s * dy, z + s * dz, dx3, dy3, dz3, dx, dy, dz,
    dx2, dy2, dz2)
hilbertC(s, x + s * dx + s * dx2, y + s * dy + s * dy2, z + s * dz + s *
    dz2, dx3, dy3, dz3, dx, dy, dz, dx2, dy2, dz2)
Algorithm for generating a 3D Hilbert space-filling curve in Python