liveBook · Manning

Surface of revolution

As explained in Geometry for Programmers

A surface of revolution is a surface generated by rotating a curve around an axis.

A surface of revolution is generated by rotating a curve around an axis. Rotating a polynomial profile around the z-axis produces a mushroom-like form: the profile controls radius as height changes, while rotation supplies the circular direction. section 8.2.2

For computation, represent the surface parametrically over a UV square: S(u, v) → (x, y, z), with both parameters ranging from 0 to 1. A sampled grid then provides points that can be connected into triangles. section 8.2.2

A practical construction separates the profile from the rotation:

  • Triangulate the sampled points rather than attempting to render a continuous surface directly; increasing the grid density produces a smoother approximation. section 8.2.2

A low-poly mushroom

Profile samples such as z = [0, 0.25, 0.5, 0.75, 1] and radii [0.2, 0.4, 0.2, 0.8, 0] define a cap-and-stem silhouette. Rotating that profile creates a low-polygon mushroom; perturbing radii and height produces randomized variants.

How Geometry for Programmers covers it

How deep it goes
Explains profile interpolation, UV sampling, coordinate conversion, and triangulation, but stops short of detailed mesh algorithms.
Examples
Uses polynomial mushroom profiles, low-polygon meshes, sampled UV grids, and randomized mushroom generators.
What it assumes
Assumes coordinate geometry and basic programming, while introducing UV parameterization and sampled surface modeling through a concrete example.
What you can do after
Build it from scratch by interpolating a profile, rotating sampled points, and converting the resulting grid into triangles.
How it connects
Connects polynomial curves, parametric surfaces, triangle meshes, CAD, CAE, NURBS, Boolean operations, and offset operations.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Geometry for Programmers. The section links point to the parts of the book it draws on.