I remember encountering this approach in A. K. Dewdney's Computer Recreations column of the April 1986 issue of Scientific American: "A program for rotating hypercubes induces four-dimensional dementia". It included enough pseudo-code for my young self to get something working in qbasic, even adding support for red-blue cellophane glasses so that the hypercubes could be seen in 3d. Great memories!