This demo employs a 3D interface to display iterations of 3D Space-Filling Hilbert Curve. Keys: 1,2,3 display iteration levels 1,2,3 respectively Up/Down Right/Left arrows and a/z keys rotate the object along the x,y,z axis.
My thanks to kylefinn at stackoverflow.com for this algorithm. My sincere thanks to gtoal for his excellent discussion titled: How to create local variables in a recursive procedure. https://scratch.mit.edu/discuss/topic/55352/ The 3D interface is a based on a projection algorithm I developed some years ago to make Geometer's Sketchpad display 3D curves. I learned a tremendous amount from @Mr_Pyro_ 3D Wireframe Engine project about optimizing rendering and keyboard effects. Much much thanks.