Rules instead of clicks
Procedural modeling describes a shape as a recipe with parameters. Change “teeth = 20” to “teeth = 24” and the whole gear regenerates. Every model in our library — gears, cookie cutters, vases, knots, terrain — is produced this way by one open file, ax-gen.js, which also powers the Lab generators.
The building blocks
| Operation | Recipe | Library examples |
|---|---|---|
| Extrude | Push a 2D outline (with holes) straight up | Gears, keychain tags, tolerance gauges |
| Revolve | Spin a profile around an axis | Chess pieces, planter, bowl |
| Sweep | Move a cross-section along a path | Cookie cutters, knots, spring |
| Loft | Connect a stack of outlines | Spiral vase, lampshade |
| Convex hull | Wrap the tightest surface around points | Platonic and Archimedean solids |
| Heightfield | Raise a grid by a function z = f(x, y) | Terrain tiles, ripple plate |
| Voxels | Fill cubes on a grid | Menger sponge, voxel sign |
| Implicit surface | Keep points where f(x, y, z) < 0 | Gyroid cube, metaball blob |
Example: an involute gear
A gear tooth flank is an involute — the curve traced by the end of a string unwinding from a circle. The generator computes the base, pitch, root and outside circles from the module and tooth count, traces each flank point by point, adds the root arcs, cuts the bore, and extrudes. Because the profile follows the involute exactly, gears with the same module mesh smoothly.
Example: a twisted vase
Each horizontal slice is a polygon whose radius bulges with height; rotating each slice a little more than the one below creates the twist. Connecting the slices — a loft — gives a closed shape ideal for spiral “vase mode” printing.
Frames for sweeps
Sweeping a tube along a 3D curve needs a stable frame at each point. Naive Frenet frames flip at straight sections, so our generator uses rotation-minimising frames and spreads the leftover twist around closed curves so the seam closes cleanly. The Möbius band deliberately keeps a half-twist.
Implicit surfaces and surface nets
An implicit surface is defined by a formula: a sphere is x² + y² + z² − r² < 0. The gyroid, used as slicer infill, is sin x cos y + sin y cos z + sin z cos x ≈ 0. To print it, the field is sampled on a grid and converted to triangles with surface nets — one vertex per cell where the sign changes. Resolution matters: too coarse and thin walls create non-manifold edges, which the Studio will flag.
Noise and terrain
Terrain uses fractal value noise: several layers of smooth random bumps, each twice as detailed and half as tall. A seed makes it reproducible — seed 7 always gives the same hills.
Procedural tools elsewhere
Blender Geometry Nodes, Houdini, OpenSCAD and CAD patterns and parameters all apply the same principle. Procedural content shines when you need variations, exact control, or shapes too regular or too complex to model by hand.
Check your understanding
1. Which operation makes a chess piece from a profile?
A revolve spins the profile around the vertical axis.
2. What curve shapes a gear tooth flank?
Involute flanks let gears roll smoothly.
3. Why use rotation-minimising frames for sweeps?
Frenet frames can flip on straight parts of a curve.