TPMS: from an implicit equation to a sampled gyroid
Understand the difference between an implicit surface, a triangle mesh and a native CAD solid.
A gyroid can look like a smoothly flowing solid in a viewer, but its representation matters as much as its appearance. An implicit equation describes a field. Sampling turns that field into finite data. A mesh extraction turns those samples into triangles. None of those steps automatically produces an exact smooth boundary representation suitable for native STEP editing.
Begin with the field
Intact’s gyroid field uses F = sin(x)cos(y) + sin(y)cos(z) + sin(z)cos(x), with coordinates scaled by the requested cell size. A level selects a field value. In sheet mode, the basic construction retains a band around that level. At zero gradient, its condition is |F − level| ≤ band. This is a nodal TPMS approximation, rather than a claim to an exact minimal surface.
The bundled gyroid example requests a 24 × 24 × 24 mm envelope, 8 mm cell size, band 0.3 and 16 samples per cell. That spans three nominal cells along each direction. Those settings are recorded in the example catalog, making the starting geometry reproducible.
A band is not a wall thickness
The basic band parameter is dimensionless. It measures a range of field values, not a distance in millimeters. Because the field gradient varies spatially, a fixed field band does not imply constant physical wall thickness. Calling band 0.3 a “0.3 mm wall” changes the meaning of the model and can mislead a printability or strength assessment.
Intact also has distance-offset workflows with separate millimeter controls. Use those controls when requesting a distance-based thickness and inspect the resulting sampling and validation limits. A millimeter input alone does not remove approximation error. If minimum thickness is a requirement, ask how it was measured and what portions of the surface were checked.
Sampling determines the delivered geometry
The implementation samples the field on a bounded grid, clips it to an envelope and uses marching cubes to extract a triangle surface. For the basic 24 mm, 8 mm cell, 16-sample example, nominal grid spacing is 0.5 mm per axis before boundary padding. A smooth shaded render can hide this finite sampling.
The lattice helper caps the clipped result and checks for a positive, closed volume with consistent winding. It also records sampling spacing, estimated mesh volume and relative density. These checks are valuable, but they do not establish an exact smooth geometry or a globally certified minimum wall thickness.
Refine with a purpose
Keep envelope, cell size, phase and band fixed while increasing resolution. Compare sampled volume and surface area and inspect thin connections and envelope boundaries. A large change indicates that the coarser mesh was not a stable description of the quantity you need. Increasing resolution also increases memory and triangle counts, so bounded sampling budgets remain part of the workflow.
Six families, explicit choices
The available sampled families are gyroid, Schwarz P, diamond, neovius, lidinoid and split P. Changing a family changes the field; it is not merely a display style. Record the family name alongside cell size, mode, level, band, phase, envelope and sampling resolution so another person can reconstruct the same request.
Sheet mode retains material around a field level. Solid mode retains one side of that level. Those choices can produce very different material fractions and connectivity. Select the mode explicitly before comparing density or making mechanical interpretations. Similar-looking lattices do not necessarily have equivalent stiffness or manufacturability.
Choose an honest export
The bundled gyroid lists STL, GLB and 3MF outputs. These carry mesh geometry. Native solid parts elsewhere in Intact can use STEP, but an implicit lattice mesh does not gain exact smooth CAD surfaces just because STEP is requested. A separate faceted conversion is available within limits; its faces still describe a faceted approximation.
The optional PicoGK path provides voxel-based TPMS workflows. It is an additional local dependency and returns mesh geometry, not smooth STEP. Choose it for its supported voxel operations, rather than as a promise to recover an analytic CAD surface.
Connect representation to the next decision
For visualization, a sampled mesh may be sufficient. For printing, inspect mesh integrity, resolution, physical thickness and process constraints. For analysis, document how the lattice is represented and whether the chosen solver actually supports that geometry. A lattice preview alone provides no certified load capacity.
Try the prebuilt browser demo for the visual interaction. Use the local plugin to compute geometry, and see the workflow guide for the boundary between website presentation and desktop execution.
Use this guide in ChatGPT
Enable the installed Intact Simulation plugin in a new conversation. State the design goal and the checks you expect, then ask the assistant to report the native measurements and failed or unverified criteria. Use Review for a measured overview and ask for a parameter preview before committing an alternative. Keep the accepted revision available while you compare results.
Follow How to Use for the practical controls and Architecture for the audit and verification chain. Plugin setup explains the local runtime and your own ChatGPT login.
Install once.
Design through conversation.
Download Intact v0.20.0 for Windows. Install privately in Codex with your own account; CAD runs on your computer.
Follow the installation procedure →