Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Sierpinsky Pyramid

Public visualization

Sierpinsky Pyramid

0 stars0🌍 Public
CCurran Kelleher
Last edited Feb 24, 2025
Created on Feb 24, 2025
Forked from 3D Fractal Tree

This example visualizes a 3D Sierpinski triangle as a pyramid built from smaller tetrahedra that align with the faces of the outer shape. Animated via a recursive generation process, the scene renders with Three.js using WebGL and canvas, while OrbitControls enable interactive rotation. The code constructs pyramid geometries and materials with directional and point lights, casts shadows onto a ground plane, and applies ambient lighting. A green background and double-sided white materials highlight the fractal’s structure as the camera orbits freely.

AI-generated description

3D Sierpinski Triangle (Pyramid) using Three.js

A visualization of a Sierpinski triangle in 3D using pyramids that align with the faces of the outer tetrahedron. Built with Three.js.

Comments

Sign in to join the discussion.

MIT Licensed