Gyroid Sphere

What is a Gyroid?
The gyroid is a triply periodic minimal surface (TPMS) discovered by Alan Schoen in 1970 while working for NASA. It is one of the most beautiful and structurally significant mathematical surfaces in nature and engineering.

The Mathematical Equation
The gyroid surface is defined by the implicit equation:

sin(x)cos(y) + sin(y)cos(z) + sin(z)cos(x) = C
Where:

x, y, z are spatial coordinates
C is a constant threshold value (typically 0 for the minimal surface)
The surface exists where the equation equals the threshold
This equation creates an infinitely connected, periodic structure that repeats in all three dimensions. The surface has no edges and divides space into two interpenetrating labyrinths.

Why Gyroids Are Special

  1. Minimal Surface
    When C = 0, the gyroid is a minimal surface, meaning it has zero mean curvature at every point. This is the same principle that creates soap bubbles - the surface minimizes area for a given boundary.

  2. Triply Periodic
    The structure repeats identically in the x, y, and z directions, creating a crystalline pattern that extends infinitely.

  3. Maximal Symmetry
    The gyroid belongs to space group I4₁32, possessing cubic symmetry. It has no straight lines or mirror planes, only rotational symmetry.

  4. Natural Occurrence
    Gyroids appear in:

Butterfly wing scales (structural coloration)
Cell membranes (lipid bilayers)
Block copolymer self-assembly
Certain crystal structures
Design Decisions for This Sculpture
Parameters Used
Parameter Value Reasoning
Resolution 100³ voxels Balance between detail and file size; creates smooth curves while remaining manageable for slicing software
Physical Size 100mm diameter Large enough to appreciate the intricate structure, practical for desktop 3D printers
Scale 2.0 Creates 2 complete periods of the gyroid pattern in each direction (2×2×2 = 8 unit cells total)
Thickness 0.5 Volumetric walls with substantial thickness for structural integrity and printability
Boundary Sphere Creates an organic, self-contained sculpture; no awkward edges
Shell Type Both sides Maximizes material around the surface for strength
Mathematical Implementation

  1. Coordinate Grid Generation
    We create a 100×100×100 grid of points spanning from -π to +π in each dimension:

x, y, z = linspace(-π, π, 100)
X, Y, Z = meshgrid(x, y, z)

  1. Surface Evaluation
    For each point in 3D space, we evaluate the gyroid function:

value = sin(Xscale) cos(Yscale) +
sin(Y
scale) cos(Zscale) +
sin(Zscale) cos(X*scale)
The scale parameter stretches or compresses the pattern frequency.

  1. Volumetric Thresholding
    Instead of creating a thin shell at value = 0, we create solid walls:

voxels = abs(value) < thickness
This gives us material wherever the gyroid function is between -0.5 and +0.5, creating solid, printable walls.

  1. Spherical Boundary
    We mask the structure to fit within a sphere:

radius = sqrt(X² + Y² + Z²)
voxels = voxels AND (radius ≤ 1.0)
This creates a self-contained, aesthetically pleasing boundary.

  1. Mesh Generation
    Each filled voxel is converted to a cube (8 vertices, 12 triangles), creating the final STL mesh.

Structural Properties
Why This Is Perfect for 3D Printing
No Overhangs - The gyroid's curvature is gentle enough that most sections self-support
Distributed Load - Forces distribute evenly through the interconnected structure
High Strength-to-Weight Ratio - Used in aerospace for lightweight, strong structures
No Floating Parts - Everything is connected; no support material needed for internal voids
Volumetric - Solid walls ensure printability without thin, fragile sections

Material Efficiency
With 16.8% infill (167,594 voxels out of 1,000,000), the sculpture achieves:

Maximum visual complexity
Structural integrity
Efficient material usage
Fascinating internal geometry visible from any angle
The Beauty of Mathematics

The gyroid represents a perfect intersection of:

Pure mathematics - elegant equation, minimal surface theory
Natural phenomena - evolved in nature for structural efficiency
Engineering - optimal strength, lightweight, manufacturability
Art - organic curves, infinite complexity, visual intrigue
This sculpture freezes a mathematical abstraction into physical form, allowing you to hold infinity in your hands.