Skip to content

A simple visualization of a Sierpinski Tetrahedron being folded from a two-dimensional triangle.

Notifications You must be signed in to change notification settings

mkmc/Sierpinski-Tetrahedron-Vis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sierpinski-Tetrahedron-Vis

A simple visualization of a Sierpinski Tetrahedron being folded from a two-dimensional triangle. three.js is used for rendering.

Demo guide

Demo

The camera can be ...

  • rotated around the fractal using left mousebutton (or dragging with one finger)
  • zoomed using mouse wheel (or pinching / spreading with two fingers)
  • panned using the right mousebutton (or dragging with two fingers)

The animation can be played (forward or backward) or paused using the top-left controls. The progress bar indicates the timestamp of the animation. It can be clicked to jump to a timestep.

It is possible to jump between complete iterations using the bottom left buttons. The bar next to it sets the animation speed and the last button toggles animation looping.

The buttons in the bottom right set the following options/actions:

  • Coloring the triangles depending on their side. The color of triangles still being folded is interpolated between the two sided.
  • Shading the triangles depending on their distance to the camera.
  • Shading the triangles using Lambert shading.
  • Resetting the camera to the initial position.

About

A simple visualization of a Sierpinski Tetrahedron being folded from a two-dimensional triangle.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages