A parametric gear pair. The number of teeth, the radii, the gap and the colours drive the geometry, which is regenerated in your browser on every change.
The geometry is computed from the parameters with three.js and rendered with React Three Fiber. The dependent values are clamped so the model stays valid: the inner gear always fits inside the outer one, and the hole inside the inner gear. A product configurator works the same way, with your product's rules instead of a gear's.
← All demos