This page is a working gyroid and TPMS lattice generator. Pick a pattern family, set the cell size and the wall thickness, and download the result for your slicer. It runs in the browser on the same engine as the rest of Rig Cad, so there is nothing to install, and the lattice is a real parametric model rather than a fixed mesh: every change re-solves the surface.
What a TPMS lattice is
A triply periodic minimal surface (TPMS) is a surface that repeats in all three directions and has zero mean curvature everywhere, like a soap film stretched across a frame. It splits space into two interwoven channels that never meet. Thicken the surface into a sheet and you get a lattice that is continuous, smooth, and free of the sharp nodes where strut lattices concentrate stress.
The gyroid is the best known of these surfaces, and it is why so many slicers offer gyroid infill. In a design tool it is more useful as geometry you control: a lightweight core inside a part, a heat-exchanger channel, a cushion, or a decorative shell.
Sheet-based TPMS surfaces have no large flat roofs: the few places where the surface faces straight down are small saddles, curving up on both sides, and they bridge. That is why these lattices usually print without supports at densities where a strut lattice would need them. For the history and the engineering behind them, read Gyroid and TPMS: Triply Periodic Minimal Surfaces Explained.
Compare the four classic TPMS families
Table: The four classic TPMS families at a glance.
| Family | What it looks like | Notes |
|---|---|---|
| Gyroid | Smooth, twisting channels with no straight lines | The usual first choice, and the one most slicers offer as infill |
| Schwarz P (primitive) | Cubic, with round tunnels running along all three axes | The easiest to read: you can see straight through it along each axis |
| Schwarz D (diamond) | Two interwoven channel networks with four-way junctions, like a diamond lattice | Evenly connected in every direction |
| Neovius | A cubic surface with more openings per cell than Schwarz P | Reads as busier and more porous at the same cell size |
The generator above reaches far beyond these four: the Pattern 3D node has more than 200 pattern types, including strut lattices, foams, Voronoi cells and fractals.
Printing a gyroid lattice
- Size the wall to the nozzle. A sheet lattice is all wall. Make it a whole number of extrusion widths and never fewer than two, or the slicer will drop it or bridge it into a mess. See Minimum Wall Thickness for 3D Printing.
- Match the cell to the layer height. Cell size does not change a lattice's angles — a TPMS has the same slopes at any scale — but a small cell gives each arch fewer layers, so fine cells printed at thick layers come out stepped and rough. The 45 Degree Rule in 3D Printing has a calculator for how much of each bead your layer height leaves in the air.
- Watch the file size. Lattices are triangle-heavy. Explore at a coarse mesh precision and only tighten it for the final download. Export for the Slicer covers STL against 3MF and how to lighten a mesh.
- Add a skin when the part has to look solid. The skin option wraps the lattice in a closed outer wall, so a part reads as a clean object from outside and stays light inside.
Put a lattice inside your own part
The generator is a small tree: a Pattern 3D lattice intersected with a cylinder, unioned with an optional skin. The same construction works on any shape — intersect the lattice with your part instead of the cylinder, or keep the part solid and let the Infill post-processing step fill its interior.
- Pattern 3D: Lattices, Infill, and Surface Textures walks through bounding a lattice, scale and precision, and the Infill and Surface Pattern steps.
- Signed Distance Fields (SDF) Explained is the maths underneath: why a lattice like this is cheap to describe and blend.
- Post-Processing in Rig Cad covers Shell, Infill and Surface Pattern as ordered steps on a finished solid.

Comments
Loading comments...