Hypercube or Tesseract

Hi everybody,

Here’s a side project of mine that I’ve fortunately completed today!

For some time, mainly after watching some of the Marvel superhero movies and hearing about the “tesseract”, I looked it up and was disappointed that the movie tesseract has nothing to do with the geometrical concept, which is much more interesting. Disney portraits the tesseract as a simple, glowing blue cube with an animated fluid substance inside.

In geometry, the tesseract or hypercube is the "four-dimensional analog of a three-dimensional cube. It is to the cube, what the cube is to the square". (source)

Here’s what I’ve come up with:

The hypercube is produced by an animated GHPython component. :smiley:

13 Likes

This is very cool. I was looking for a way to take 3D slices through 4D shapes and found this on Github: https://github.com/orybkin/Tesseract . It uses a Jupyter Notebook to visualise a 3D slice through 9 hypercubes (not all are visible at once)

Unfortunately it runs in Cpython, not in Ironpython and uses Scipy for key elements so no way to easily integrate it with Rhino / GrassHopper

1 Like

Very cool stuff, Graham! Thanks for replying. :slight_smile:

It’s a little disappointing to be honest. It turns out that a 3D slice through a 4D hypercube is … a cube ! :laughing:

Haha… that’s messed up. :smiley:

Daniel Shiffman (Nature of Code author, all around cool dude), also did one in javascript.

2 Likes

Uh nice! I’ll check that out tomorrow.

There’s a new component in recent releases of Kangaroo that lets you explore 4d rotations - under the utilities tab - Möbius Transformation.

Moebius_example.gh (7.2 KB)

It takes any geometry, and stereographically projects it from flat 3-space to the 3-sphere, rotates it in 4d, then projects it back.

In 2 dimensions there are many possible conformal mappings (angles are preserved, and circles stay circular), but in 3d these Möbius transformations are the only conformal transformations possible.

Since we’re only looking at a 3d slice or projection anyway, I think it can sometimes be more illuminating to explore 4d rotations through their effect on familiar 3d objects rather than just higher dimensional polyhedra.

You can also get all sorts of interesting curves and surfaces by sweeping or arraying points or curves through these 4d rotations

4 Likes

As always, astonishing stuff, Daniel! :star_struck:
I barely managed to get the projections for the cube right, but your example with the horse is just great, and has meme potential. :smiley:

2 Likes

Whoa! This is nice, I’m getting perpetual motion vibes

1 Like