Skip to content
A web-based 4D Geometry viewer
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
media
src
.gitignore
LICENSE
README.md
index.html

README.md

4D Geometry Viewer

Thinking about 4 spatial-dimensional geometry is fun, but it's very hard to develop an intuition for at first. We developed this web-based viewer as our capstone project at St. Olaf College. Its original purpose was to teach an Introduction to 4D Geometry class for non-math majors.

4d slicing
(Left) Projection of a distorted 4D cube. (Right) The 3D cross-sections of the yellow hyper-plane with the 4D object

Our goal was to let you view 4D objects through a projection view on the left (projected onto an intermediate 3D "screen" which is then projected onto your 2D screen) while seeing the cross sections on the right. The hope is that seeing objects in these two views simultanously aids understanding.

It's still hard to fully grasp high dimensional ideas like this, so another tool is dimensional analogy. You can always drop down one (or two) dimensions and inspect the same phenomenon. It's not obvious why the cross sections of this sheared 4D cube look like a shrinking cube:

4d shrinking cube
Slicing a sheared 4D cube along the W axis gives us cross sections that look like a shrinking cube

Until you see why the same thing happens in 3D:

3d shrinking square
Slicing a sheared 3D cube along the Y axis gives us cross sections that look like a shrinking square

How to Use

The viewer itself is live at: https://stodevx.github.io/humke-4d-geometry/

Not everything is as intuitive as it should be. Check out our usage guide for everything the app can (and cannot) do:

https://github.com/StoDevX/humke-4d-geometry/wiki/Usage

How it Works

The developer docs provide a brief overview of the project structure.

Credits

The main developers on this project have been Omar Shehata, Joe Peterson, Tianyu Pang and Justin Pacholec.

Thanks to Professor Paul Humke for spearheading this project and acting as our advisor.

Thanks to Nick Nooney for the marching cubes implementation.

We would never have gotten this far without all the insightful research we've built upon.

One More Example

This is not currently possible to do using just the web viewer, so it's not included with the examples above. But it's really cool, so I wanted to show it.

Rotating Tesseract
A rotating tesseract with one face highlighted

To me, this is much easier to understand than standard animations of rotating tesseracts. This 4-dimensional cube appears to distort as it rotates. Being able to follow one face, and to see how it actually is a cube that just gets distorted as the view changes is really helpful.

Even though we have no UI to set this up in the app, it is not difficult to put together with a few lines of code. We simply define the 16 points in a tesseract, as well as the connecting edges then we define a cube in 4D space. We draw the former as a wireframe and the latter as a solid. We hope others interested in this topic will find the source code useful for constructing more complex visualizations and examples not possible in the app today.

You can’t perform that action at this time.