Three.js Geometry and Procedural Modeling Examples

Geometry is the shape data that every three.js mesh is built from. These demos show how to create and change that data in code: boolean operations (CSG) that combine solids, marching cubes and surface nets that turn volumes into meshes, voxel terrain with chunked meshing, and extruded SVG paths.

You will also find lathe and sweep surfaces, parametric shapes such as the Klein bottle, spline editors, Delaunay and Voronoi terrain, and tools for finding a mesh's edges and silhouettes. Each example explains how its vertices, indices and normals are built, so you can adapt the approach to your own models.

Most viewed in geometry & modeling

All geometry & modeling demos

13 Demos
Curve Modifier Playground (r183 roadmap) preview
Explore Demo →

Curve Modifier Playground (r183 roadmap)

Flow-based geometry deformation demo that moves and bends a mesh along an editable Catmull-Rom spline path in real time.

geometry
Three.js CSG Boolean Operations (Union, Subtract, Intersect) preview
Explore Demo →

Three.js CSG Boolean Operations (Union, Subtract, Intersect)

Real-time constructive solid geometry in Three.js using three-bvh-csg, combining shapes with union, subtraction, intersection and XOR while the tool animates, with per-operand materials and timing.

geometry
Three.js Marching Cubes Playground (Metaballs & Implicit Surfaces) preview
Explore Demo →

Three.js Marching Cubes Playground (Metaballs & Implicit Surfaces)

Interactive marching cubes in Three.js polygonizing metaballs, gyroids, Schwarz P minimal surfaces, torus pairs and noise blobs, with live iso level, grid resolution and per-vertex colors.

geometry
Three.js Voxel Terrain Editor (Chunked Meshing) preview
Explore Demo →

Three.js Voxel Terrain Editor (Chunked Meshing)

Editable voxel world in Three.js with procedural terrain, caves and water, chunked face-culled meshing, DDA voxel picking and dig/build brushes that rebuild only the chunks they touch.

geometry
Three.js SVG Extrusion (SVGLoader + ExtrudeGeometry) preview
Explore Demo →

Three.js SVG Extrusion (SVGLoader + ExtrudeGeometry)

Turn SVG paths into 3D solids in Three.js with SVGLoader and ExtrudeGeometry, keeping holes and fill colors, with depth, bevel and curve-detail controls and loading of your own SVG files.

geometry
Three.js Lathe & Sweep Surfaces preview
Explore Demo →

Three.js Lathe & Sweep Surfaces

Revolve spline profiles into vases, goblets, chess pawns and bells with LatheGeometry, or sweep star, gear and flower cross-sections along 3D paths with twist and taper using Frenet frames.

geometry
Three.js Parametric Surface Gallery (Klein Bottle, Boy's Surface) preview
Explore Demo →

Three.js Parametric Surface Gallery (Klein Bottle, Boy's Surface)

Gallery of famous parametric surfaces in Three.js (Klein bottle, Möbius strip, Boy's surface, Dini's surface, a seashell, Enneper's minimal surface and a breather), with a UV checker and a growth animation.

geometry
Three.js SDF Mesh Deformer preview
Explore Demo →

Three.js SDF Mesh Deformer

Deform meshes in Three.js with animated signed distance fields (sphere, rounded box or torus) in shrink-wrap dent, attract, repel and twist modes, with vertices colored by displacement.

geometry
Three.js Delaunay & Voronoi Terrain (TIN) preview
Explore Demo →

Three.js Delaunay & Voronoi Terrain (TIN)

Triangulated irregular network terrain in Three.js using Bowyer–Watson Delaunay triangulation of uniform, Poisson-disc or feature-adaptive samples, with the Voronoi dual drawn beneath.

geometry
Three.js Isosurface from Volume (Surface Nets vs Marching Cubes) preview
Explore Demo →

Three.js Isosurface from Volume (Surface Nets vs Marching Cubes)

Extract meshes from 3D noise volumes (asteroids, caves, overhanging terrain and gyroid lattices) in Three.js with a hand-written Surface Nets mesher shown next to Marching Cubes on the same field.

geometry
Three.js Curve & Spline Editor (Catmull-Rom, B-Spline) preview
Explore Demo →

Three.js Curve & Spline Editor (Catmull-Rom, B-Spline)

Interactive spline editor in Three.js with draggable control points (TransformControls), centripetal, chordal and uniform Catmull–Rom, cubic B-spline and polyline curves, tube meshes, Frenet frames and a constant-speed rider.

geometry
Three.js Mesh Edge Skeleton (Feature, Silhouette & Boundary Edges) preview
Explore Demo →

Three.js Mesh Edge Skeleton (Feature, Silhouette & Boundary Edges)

Extract a mesh's edge skeleton in Three.js, covering crease-angle feature edges, open boundary edges and view-dependent silhouette edges recomputed every frame, plus a metal strut-sculpture mode.

geometry
Three.js Shape Inflation & Normal Offset preview
Explore Demo →

Three.js Shape Inflation & Normal Offset

Inflate flat shapes into balloons in Three.js by solving a pressure equation on a Delaunay mesh, and compare normal-offset growth and shrinkage of meshes with split vs averaged normals.

geometry