Skip to content

hannahchgit/cross-sections

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

3D Cross Sections Explorer

An interactive browser-based tool for visualizing how 2D shapes emerge when 3D solids are sliced by a cutting plane. Built with Three.js, it renders a live 3D scene alongside a computed 2D cross-section diagram.

Features

  • 6 solids — Cube, Cylinder, Cone, Sphere, Square Pyramid, Triangular Prism
  • Adjustable cutting plane — control height, tilt, and rotation with sliders
  • Real-time 2D cross-section — displays the resulting shape with its name and a description
  • Conic sections — slice a cone to reveal circles, ellipses, parabolas, and hyperbolas
  • Preset cuts — one-click interesting cross-sections per solid (e.g. the hexagon hidden inside a cube)
  • 3D orbit controls — drag to rotate, scroll to zoom

Usage

Open cross-sections.html directly in any modern browser — no build step or server required.

open cross-sections.html
  1. Pick a solid from the Choose a Solid panel
  2. Drag the Height, Tilt, and Rotate sliders to position the cutting plane
  3. The Resulting 2D Shape panel updates in real time
  4. Use Interesting Cuts presets to jump to notable cross-sections

Controls

Control Action
Drag (3D view) Orbit camera
Scroll (3D view) Zoom in / out
Height slider Move the cutting plane up or down
Tilt slider Tilt the plane from horizontal to vertical
Rotate slider Rotate the plane around the vertical axis

Cross-Sections by Solid

Solid Possible cross-sections
Cube Square, Rectangle, Triangle, Regular Hexagon
Cylinder Circle, Ellipse, Rectangle
Cone Circle, Ellipse, Parabola, Hyperbola, Triangle
Sphere Circle (always)
Square Pyramid Square, Rectangle, Triangle, Pentagon
Triangular Prism Triangle, Rectangle, Parallelogram, Pentagon

Dependencies

Loaded from CDN — no installation needed.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages