Project
Skip to content

Making 3D models · Intermediate · 3 min

Procedural 3D Modeling: Shapes From Rules

How the 3DA.XYZ model library is built: parametric profiles, revolves, sweeps along curves, lofts, convex hulls, voxels, heightfields and implicit surfaces — and the tools that use the same ideas.

By the 3DA.XYZ editorsUpdated 2026-11-05Original renders & data

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

OperationRecipeLibrary examples
ExtrudePush a 2D outline (with holes) straight upGears, keychain tags, tolerance gauges
RevolveSpin a profile around an axisChess pieces, planter, bowl
SweepMove a cross-section along a pathCookie cutters, knots, spring
LoftConnect a stack of outlinesSpiral vase, lampshade
Convex hullWrap the tightest surface around pointsPlatonic and Archimedean solids
HeightfieldRaise a grid by a function z = f(x, y)Terrain tiles, ripple plate
VoxelsFill cubes on a gridMenger sponge, voxel sign
Implicit surfaceKeep points where f(x, y, z) < 0Gyroid 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.

Try itChange the tooth count and module and watch the gear rebuild in real time. Open the gear generator →

Check your understanding

1. Which operation makes a chess piece from a profile?

2. What curve shapes a gear tooth flank?

3. Why use rotation-minimising frames for sweeps?