Imagine a surface that never ends, never intersects itself, and repeats along three independent spatial directions. It bends continuously through space, separating one winding network of passages from another. At every point, its mean curvature is zero: it bends one way as much as it bends the other.

This is a triply periodic minimal surface, usually shortened to TPMS. These surfaces began as objects of mathematical study, but advances in computation and additive manufacturing have made TPMS-inspired structures practical design tools. Today, they are being investigated for heat exchangers, biomedical scaffolds, energy absorbers, filters, electrodes, and photonic materials.

Among them, one shape has become especially recognizable: the gyroid.

Gyroid TPMS Explorer
Project

Gyroid TPMS Explorer

@p12/TPMS gyroid example
Gyroid TPMS Explorer
Gyroid TPMS Explorer

Adjust the gyroid controls and observe how cell scale and level-set settings change channel size, density, and continuity.

@p12/TPMS gyroid example
Adjust the gyroid controls and observe how cell scale and level-set settings change channel size, density, and continuity.

The history of the gyroid

Alan H. Schoen introduced the gyroid in his 1970 NASA technical note, Infinite Periodic Minimal Surfaces Without Self-Intersections. Like the P and D surfaces, the gyroid is an embedded TPMS. Unlike them, it contains neither straight lines nor mirror planes. The surface separates two chiral labyrinth networks that are mirror images with opposite handedness; the complete two-sided surface is achiral.[1]

The gyroid’s labyrinth channels curve and branch without abrupt junctions. This makes the geometry look almost organic, but its structure is governed by symmetry and periodicity. A single repeating cell contains a complex passage system; tiled in three dimensions, it becomes a continuous architecture.

What makes a surface “minimal”?

A soap film is the usual physical analogy for a minimal surface. Given a boundary, the film settles into a shape whose area is stationary under small variations. Mathematically, the defining local condition is zero mean curvature:

H=k1+k22=0,H=\frac{k_1+k_2}{2}=0,

where k1k_1 and k2k_2 are the two principal curvatures at a point. Where the surface is not locally flat, those curvatures have equal magnitude and opposite signs: if the surface bends upward in one principal direction, it bends downward in the other. The result is a smooth saddle-like geometry rather than a collection of beams, plates, or sharp-edged cells.

The phrase triply periodic adds a second requirement. A TPMS repeats under translations along three independent spatial directions. One unit cell can therefore be copied along the xx, yy, and zz axes to fill a volume without seams.

An embedded TPMS divides space into two continuous, interpenetrating regions called labyrinths. They wind around each other but do not connect through the separating surface. In engineering, designers usually turn this mathematical surface into material by thickening a band around it to create a sheet structure or by filling one labyrinth to create a single-network solid. These manufacturable forms are derived from a TPMS, but their material boundaries are not generally exact minimal surfaces.

Gyroids in nature and engineering

Butterfly-wing photonic crystals

Some butterflies form single-network gyroid nanostructures inside their wing scales. In species including Parides sesostris, a chitin network interacts with visible light as a three-dimensional photonic crystal, contributing to vivid structural color. Microscopy and X-ray methods have been used to identify the geometry and relate it to optical behavior; recent research also examines the handedness of these natural gyroid networks.[2] Here, the gyroid is not primarily a load-bearing structure—it is a way of controlling light.

Diagram of a butterfly and the layered microstructure of a wing scale, labeling longitudinal ridges, cross ribs, the lower lamina, and trabeculae.
A butterfly wing is covered with microscopic scales whose layered architecture can host complex photonic structures.

Compact heat exchangers

A sheet gyroid creates two interwoven but separated flow paths. Its large area-to-volume ratio gives two streams extensive contact through a thin wall, while continuously curving passages avoid the discrete beam junctions found in many conventional lattices. Researchers have designed, metal-printed, and experimentally tested gyroid heat exchangers using this principle.[3]

The geometry is promising, but performance is not automatic: heat transfer, pressure drop, fouling, wall thickness, surface roughness, and print defects must be evaluated together.

Cutaway rendering of a cylindrical heat exchanger containing a repeating gyroid-derived internal core.
A gyroid-derived core packs a large exchange surface into a compact cylindrical body.

Common TPMS level-set approximations

Several TPMS geometries are widely used as starting points for engineering models. The equations below are convenient trigonometric approximations, often called nodal level sets, rather than exact descriptions of the mathematical minimal surfaces.

Table: Nodal level-set approximations of three classical TPMS.

Surface Common level-set approximation, f(x,y,z)=0f(x,y,z)=0
Schwarz Primitive (P) cos⁡x+cos⁡y+cos⁡z=0\cos x+\cos y+\cos z=0
Schwarz Diamond (D) sin⁡xsin⁡ysin⁡z+sin⁡xcos⁡ycos⁡z+cos⁡xsin⁡ycos⁡z+cos⁡xcos⁡ysin⁡z=0\sin x\sin y\sin z+\sin x\cos y\cos z+\cos x\sin y\cos z+\cos x\cos y\sin z=0
Gyroid (G) sin⁡xcos⁡y+sin⁡ycos⁡z+sin⁡zcos⁡x=0\sin x\cos y+\sin y\cos z+\sin z\cos x=0

For a cubic cell with period LL, replace xx, yy, and zz with 2πx/L2\pi x/L, 2πy/L2\pi y/L, and 2πz/L2\pi z/L. Independent values LxL_x, LyL_y, and LzL_z create anisotropic cell dimensions, while spatially varying values create grading. Those variations are useful design tools, but they generally produce a TPMS-inspired level set rather than a strictly periodic, exact minimal surface.

To create a sheet structure, designers can thicken a band such as ∣f∣≤t|f|\leq t. Filling one side, such as f≤tf\leq t, creates a network structure. The threshold tt then helps control wall thickness or material volume fraction.

Those two constructions are exactly the two modes of Rig Cad's Pattern 3D node: Sheet (Shell) thickens the band, Solid (Fill) keeps one side. Its catalog lists the three surfaces above as Gyroid, Schwarz P, and Schwarz Diamond, next to Neovius, Schoen I-WP, Fischer-Koch S, Lidinoid, and dozens of other TPMS and lattice entries.

Why designers are drawn to TPMS

TPMS-based structures combine several traits that are rarely found together:

  • Continuity: loads and fluids can travel through smooth, connected paths rather than isolated cells.
  • High interfacial area: a large surface can be packed into a compact volume.
  • Dual networks: a thickened sheet can separate two intertwined channel systems.
  • Tunability: period, thickness, threshold, orientation, and grading can all be parameterized.

Use TPMS surfaces in your designs

Rig Cad's implicit-modeling tools let you parameterize TPMS-derived surfaces for functional parts, lightweight structures, and decorative designs. The main tool is the Pattern 3D node:

  • Width, Height, and Depth define the box the pattern fills; turn on Unbounded Pattern to let the field continue past the box and let a parent Intersection define the finished shape instead.
  • Pattern Type selects the surface—gyroid by default—and Scale sets the unit-cell size, the role LL plays in the equations above. Higher is coarser. It is a control to set by measuring the cell you get, not a millimetre dimension to compute from.
  • Mode chooses Sheet (Shell) for the thickened band or Solid (Fill) for one labyrinth; Thickness is the wall in sheet mode, and Invert swaps material and void.
  • Density, Thickness, and Morph modulation let an image, a point field, or a radial falloff vary the period, the wall, or the pattern itself across the volume—the grading described earlier, applied as a field.
  • Precision sets the sampling resolution when the node meshes itself. Inside an SDF operation the root of that branch owns the sampling instead. Cost rises steeply with volume over resolution, so start coarse and refine only what you can measure.

These are the panel labels. Pattern 3D: Lattices, Infill, and Surface Textures documents the same controls by their option paths, which is what an expression binds to, and maps the two.

The usual workflow is to intersect the pattern with the part you want filled rather than trying to bound it by the box alone. For a lattice inside an existing solid, the Infill post-processing step applies the same catalog inside a shell of controlled thickness; Surface Pattern embosses or debosses it into a surface instead. Post-Processing in Rig Cad covers both.

Because dense or heavily graded implicit models are computationally intensive, they may take longer to preview and regenerate. The interactive gyroid project above and the decorative-box example provide two starting points: one exposes the geometry itself, while the other shows how a mathematical surface can become part of a finished design. That transition—from equation to controllable geometry to manufacturable object—is what makes TPMS so useful.

Decorative Box
Project

Decorative Box

@p12/Decorative Box
Decorative Box
Decorative Box

Inspect how the gyroid-derived surface is bounded and incorporated into a finished decorative box.

@p12/Decorative Box
Inspect how the gyroid-derived surface is bounded and incorporated into a finished decorative box.

Connect the gyroid to SDF modeling

Read Signed Distance Fields: Geometry as a Function for the scalar-field foundation behind implicit modeling, offsets, Boolean composition, and surface extraction. Geometry Nodes, Displacement, and the Implicit Tree places the same lattice next to the volume and node-group workflows Blender users already know. For the full Pattern 3D catalog, the measured scale-versus-precision trade-offs, and the one bounding mistake that silently returns a solid part, read Pattern 3D: Lattices, Infill, and Surface Textures.

The gyroid projects on this page show the next step: turn a field equation into bounded, adjustable geometry. For production use, define tested ranges for cell period, sheet thickness, threshold, grading, and envelope size, then validate the resulting mesh and manufacturing process. Mesh Cleanup in Rig Cad is where that validation lives, and a thin TPMS wall is the failure to check first.