Surface Creator

Purescans in Modeling


Surface Generator – Documentation (version 1.96.1)

Installation

Requirements

  • Blender 4.2 or newer (tested with Blender 4.5 LTS, 5.2 LTS and 5.3)
  • Windows, macOS or Linux – no extra Python packages needed
  • Unzip your Superhive download Surface_Generator_1.96.1_Superhive.zip. Inside you find the extension surface_generator_1.96.1.zip – do not unzip this inner file, Blender installs it directly.

Install

  1. Start Blender.
  2. Open Edit › Preferences › Get Extensions.
  3. Click the small arrow ( ⌄ ) in the top right corner of the window and choose Install from Disk…
  4. Select surface_generator_1.96.1.zip and click Install from Disk.
  5. Make sure the checkbox next to Surface Generator is enabled.


1. What Surface Generator does

Surface Generator creates mathematical structures directly in Blender: triply periodic minimal surfaces (TPMS) such as the gyroid, rod networks, strut and node lattices, honeycombs, polyhedral tilings, algebraic surfaces and Platonic / Catalan solids – 163 structures in total, plus your own formulas.

It was built for alternative and adaptive infill in 3D printing, and is just as useful for product design, jewelry, architecture and visualization. Every result is a normal Blender object that you can keep editing, render or export.

  • Three output types: Triangles, Smooth Quads or editable NURBS patches.
  • Graded TPMS: fill any mesh with a TPMS whose cells grow from fine at the skin to coarse in the core.
  • Custom formulas: type your own implicit function f(x, y, z) = 0 in plain notation (e.g. sinx cosy) – or start from any built-in formula and modify it (chapter 7).

2. Opening the add-on

  • Window: 3D Viewport › Add › Mesh › Surface Generator… (Shift A). The window stays open while you change settings and generate. Close it with Close or Esc.
  • Sidebar: press N in the 3D Viewport, tab Surface Gen. Same controls, permanently docked – handy while you select target objects for graded infill.

When a generated NURBS object is selected, the sidebar additionally shows the panel NURBS Patches (see chapter 6).

The Surface Generator window


The same controls in the sidebar (tab Surface Gen)

3. Workflow in four steps

  1. Select Surface: choose a category (TPMS, Algebraic, Lattice, Objects, Custom) and then the structure.
  2. Parameters: set Resolution, Cell Size or Scale and – if available – Iso Value.
  3. Mesh type: Triangles, Smooth Quads or NURBS.
  4. Click Generate Surface. With Replace Previous enabled, the last result is replaced, so you can try settings quickly.

4. Settings reference

Header

Shows the version and how many structures each category contains. Reset Parameters restores all default values.

Select Surface

Category Contents
TPMS Minimal surfaces (Gyroid, Schwarz P/D/H, I-WP, Neovius, Lidinoid, Fischer-Koch, F-RD, saddle towers …)
Algebraic Classic algebraic surfaces (Tanglecube, Chmutov, Barth, Kummer, Genus 2 …)
Lattice Honeycombs, TPMS rod networks, hollow strut lattices, polyhedral tilings
Objects Smooth-node lattice cells (strut, auxetic, polyhedral, grid, stochastic, bio-inspired, meta) and Platonic / Catalan solids
Custom Your own formula

Formula

Shows the formula of the selected structure. Copy to Custom editor copies it into the Custom category, where you can modify it.

In the Custom category you type the formula yourself. Variables are x y z; available functions are sin cos tan exp sqrt log abs; use ^ for powers. Natural notation is accepted, e.g. sin2x, cos3y, 4cos(x), sinx cosy. The surface is where the formula equals the Iso Value. Details and examples: chapter 7.

Parameters

Setting What it does
Resolution (10–200) Grid points per axis. Higher means finer detail and more polygons. Presets: Draft 25 · Medium 55 · Fine 100.
Cell Size (TPMS) Number of unit cells per axis (the domain is ±π·Cell Size). 1 = one cell, 2 = 2×2×2 cells.
Scale (algebraic & lattice objects) Size of the sampled domain (±Scale).
Iso Value Level of the surface. 0 is the classic minimal surface; other values shift the surface and change the volume ratio of the two sides. Fixed to 0 for lattice objects and networks.

Mesh type

Type Result Best for
Triangles Marching cubes, then automatic decimation. 3D printing, booleans, export
Smooth Quads Clean all-quad mesh plus a Subdivision Surface modifier (setting Subdivision, 0–4; viewport uses at most 2). Smooth renders, sculpting, further modeling
NURBS Real NURBS surface patches (22 TPMS, see chapter 6). Settings: Surface Resolution and Editable Patches. CAD-like surfaces, exact smooth shapes, symmetric editing

[Image: manual_outputs.jpg]

The same gyroid as Triangles, Smooth Quads and NURBS patches (each colour is one base patch).

Replace Previous – deletes the previous result before generating a new one.

Special generators

Some structures in the Lattice and Objects menus have their own settings and button:

Generator Settings
Honeycomb (true hex mesh) Cell Size (center to corner), Wall Thickness, Height, Columns, Rows, Pointy Top, Center Grid → Generate Honeycomb
Open strut lattice (hollow tubes) Cell Size, Strut Radius (fraction of the cell), Count X / Y / Z → Generate Strut Lattice
Polyhedral tiling Cell Scale, Count X / Y / Z → Generate Polyhedral Lattice
Platonic / Catalan solid Radius; placed at the 3D cursor → Generate Solid

5. Graded TPMS – adaptive density

Graded mode fills a mesh with a TPMS whose cell size changes with the depth below the surface: fine cells at the skin for a closed, stiff outer zone, coarse cells in the core to save material and print time.

[Image: manual_graded.jpg]

Sphere filled with a graded gyroid, cut in half: fine cells at the skin, coarse cells in the core.

  1. Choose a TPMS (e.g. Gyroid) and a mesh type (Triangles or Smooth Quads).
  2. Enable the checkbox Graded TPMS – tile size by depth.
  3. Click your target mesh in the viewport so that it is the active object. The panel shows Target: name.
  4. Set the cell sizes:
    • Relative (default): Cell @ Skin and Cell @ Core in % of the target's largest dimension (default 10 % / 30 %). The panel shows the resulting sizes in scene units.
    • Absolute: Cell @ Skin / Cell @ Core in scene units.
  5. Bands (2–16): number of size zones between skin and core.
  6. Hide Target hides the original object after generating.
  7. Click Generate Graded.

The structure is cut exactly where the real depth inside your model crosses each band limit – there are no boolean operations involved, so nothing gets lost and no flat walls appear. NURBS output is not available in graded mode, because the cell size changes.

6. NURBS patches

For 22 TPMS, Surface Generator creates real NURBS surfaces instead of a mesh: Gyroid, Schwarz P, Schwarz D, I-WP, Neovius, Schwarz H, P Variant (neck 60°), P Variant (neck 52°), K Surface, OCTO-D, FCC Surface, Split P, Double Gyroid, G-Prime, Double Schwarz D, F-RD 4, Schoen F-RD, Fischer-Koch S, Lidinoid, PN, Double Schwarz P, D-Prime. Iso Value must be 0 (Schwarz P also works between −0.95 and 0.95).

Every patch set was fitted with constraints so that all patches meet without gaps and with matching tangents (maximum deviation from the formula surface ≤ 0.06 % of the cell). The number of cells per axis comes from Cell Size.

Editable Patches (default)

Each patch is its own object, but all symmetric copies share the curve data of their base patch. Edit any patch in Edit Mode (Tab) and every copy in every cell follows; mirrored copies mirror the edit.

Left: as generated. Right: one base patch edited – all copies follow.

Edit Mode on a base patch: the control points (orange) of one patch drive all its symmetric copies. The panel NURBS Patches appears at the bottom of the sidebar.

When a NURBS result is selected, the sidebar (N › Surface Gen) shows the panel NURBS Patches:

Button Function
Select Base Patches Selects one object per independent patch shape. Base patches are drawn with wireframe (turn it off in Object Properties › Viewport Display › Wireframe).
Fix Seams After moving points on a patch border, this makes the smallest change that closes all seams again. Option Keep Smooth (C1) also restores tangent continuity. Points in the interior of a patch are not changed. Works in Edit Mode.
Reset Shape Restores the original fitted surface.

How the result is organized

  • All patches and the root empty live in the collection … (NURBS) cell. Move, rotate or scale the whole structure with the root empty.
  • Additional cells are Geometry Nodes instances (object … other cells). They follow your edits automatically. To remove single cells, delete vertices of the other cells mesh.
  • Surface Resolution controls the tessellation. For surfaces with many small patches it is scaled down automatically, so every cell has a similar polygon count.
  • With Editable Patches off you get one joined object per cell – lighter, but not symmetric-editable.

7. Custom formulas

Besides the built-in structures you can generate any surface that can be written as an implicit function f(x, y, z) = 0. This is how you build your own TPMS variants, blend two structures, or add a density gradient.

Category Custom with a typed formula (natural notation) and the generated surface.

Two ways to start

  • From a built-in structure: select it (e.g. TPMS › Gyroid) and click Copy to Custom editor. The category switches to Custom and the formula is in the text field, ready to edit.
  • From scratch: choose the category Custom and type the formula into the field.

Then set Resolution, Cell Size and Iso Value and click Generate Surface as usual. Triangles and Smooth Quads work for every formula.

How the formula is evaluated

Item Meaning
Variables x y z. The sampled box is ±π·Cell Size in each direction – the same as for the built-in TPMS. A term like cos x therefore repeats once per Cell Size unit; cos 2x twice.
Surface Where the formula equals the Iso Value (default 0). Changing the Iso Value moves the surface towards one side.
Functions sin cos tan exp log sqrt abs, also sinh cosh tanh arcsin arccos arctan; constants pi and e.
Powers x^2 (or x**2).
Natural notation sinx → sin(x) · sin2x → sin(2·x) · 4cos(x) → 4·cos(x) · 2x → 2·x · sinx cosy → sin(x)·cos(y) · (…)(…) → product.
Python / NumPy Already written code such as np.cos(x)*np.sin(y) is accepted unchanged, including other NumPy functions (e.g. np.maximum).

Examples

[Image: manual_custom.jpg]

The first three examples from the table below (rendered with a Solidify modifier).

Result Formula Settings
Gyroid blending into Schwarz P from bottom to top (sinx cosy + siny cosz + sinz cosx)(0.5-z/12.6) + (cosx + cosy + cosz)(0.5+z/12.6) Cell Size 2 (12.6 ≈ 4π, the height of the box)
Gyroid with a density gradient along Z sinx cosy + siny cosz + sinz cosx - 0.2z Cell Size 2
Schwarz P variant with extra connections cosx + cosy + cosz + 0.5 cos(x+y+z) Cell Size 2
Finer gyroid (two periods per cell) sin2x cos2y + sin2y cos2z + sin2z cos2x any

Tips and limits

  • Keep terms periodic in 2π (sin, cos of integer multiples of x, y, z) if the result should tile seamlessly.
  • A gradient term such as - 0.2z shifts the local iso level: the surface moves towards one side and the volume fraction changes along Z. Keep it smaller than the amplitude of the periodic part, otherwise the surface disappears at the ends.
  • If nothing is generated, the formula never reaches the Iso Value inside the box – try Iso Value 0, a larger Cell Size or a smaller constant.
  • Typing errors (e.g. a missing bracket) show a message instead of generating.
  • Custom formulas are not available as NURBS patches (those are precomputed for 22 TPMS) and not in Graded TPMS mode.

8. Tips for 3D printing

  • Sheet TPMS have no thickness. Add a Solidify modifier to turn the surface into a printable wall. Networks, strut lattices and lattice objects are already solid.
  • Use Triangles for slicers; apply modifiers before export (File › Export › STL / 3MF / OBJ).
  • Set the scene unit scale first, then choose cell sizes in real units (e.g. 5–10 mm cells for infill).
  • Change the Iso Value to shift the surface towards one side – useful to tune the volume fraction.
  • Use Graded TPMS for adaptive density: dense, stiff skin – light, open core.
  • Start with the Draft preset, then switch to Medium / Fine for the final result.

9. Troubleshooting

Problem Solution
“Empty surface – adjust Iso Value or Resolution” The Iso Value is outside the range where the surface exists. Set it back to 0 or raise the Resolution.
NURBS: “No NURBS patch set for this surface” Only the 22 TPMS listed in chapter 6 have NURBS patches. Use Smooth Quads for the others.
NURBS: “needs Iso Value 0” Set Iso Value to 0 (only Schwarz P supports other values).
Graded: “No mesh active” Click the target mesh so that it is the active object, then generate.
Slow or high memory use Lower Resolution, Cell Size / counts, Subdivision or NURBS Surface Resolution.
Custom: “Could not read the formula” Check brackets and operators. Natural notation is supported, but every opening bracket needs a closing one.
Custom: “No surface found at this iso value” The formula does not reach the Iso Value inside the box. Set Iso Value to 0, change the Cell Size, or reduce constant offsets in the formula.
Some algebraic surfaces look cut off They extend beyond the sampled box. Increase Scale.

10. License

Surface Generator is licensed under the GNU GPL (version 2 or later). Meshes and surfaces you create with it are yours and can be used freely, including commercially.

Appendix – all structures

TPMS – triply periodic minimal surfaces (44)

Cubic: Gyroid, Schwarz P, Schwarz D, I-WP, Neovius, Schwarz H, P Variant (neck 60°), KP-Surface, P Variant (neck 52°), K Surface, OCTO-D, FCC Surface, I-Surface, Wrapped Package, Split P

Gyroid: Double Gyroid, Triple Gyroid, G-Prime

Diamond: Double Schwarz D, F-RD 4, Schoen F-RD, F-RD (Hsieh-V.), D-Prime, Fischer-Koch C(D)

Fischer-Koch: Fischer-Koch S, Fischer-Koch Y

Special: Lidinoid, Chen-Gackstatter, Traizet, PN, W Surface, PW-Surface, Double Schwarz P

Saddle: Saddle Tower, Double Saddle T., 3-Fold Saddle T., 4-Fold Saddle T., 3-Sided Saddle, Diamond Saddle T.

Scherk: F-RD Surface, First Scherk, Second Scherk, Octo, Octo2

Lattice menu – honeycombs, networks, strut lattices, tilings (43)

Honeycomb: Honeycomb (BMesh), Honeycomb Gyroid, Honeycomb Diamond, Honeycomb I, Honeycomb L

Network: Gyroid Network, Schwarz P Network, Schwarz D Network, I-WP Network, Neovius Network, Lidinoid Network, Double Gyroid Net., G-Prime Network, Schwarz H Network, I-Surface Network, KP-Surface Network, Chen-G Network, F-RD Network, D-Prime Network, Split-P Network, FCC-TPMS Network, W-P Surface Network, Double-D Network

Strut lattices: Primitive Cubic, Body Centered (BC), BC Cubic, Edge Octahedron, FC Cubic, Star Tetrahedral, BC Star Tet, Octa-Tet, Tesseract, Dodecahedral, Kelvin (Trunc. Octa), Kagome 3D, Cuboctahedron, Diamond Cubic, Cubic + Octet, Truncated Tetrahedron, Icosahedral

Polyhedral tilings: Rhombic Dodecahedron, Truncated Octahedron, Regular Dodecahedron

Objects menu – lattice objects and solids (58)

Platonic: Tetrahedron, Cube, Octahedron, Dodecahedron, Icosahedron

Catalan: Triakis Tetrahedron, Rhombic Dodecahedron, Tetrakis Hexahedron, Deltoidal Icositetrahedron, Triakis Octahedron, Disdyakis Dodecahedron, Pentagonal Icositetrahedron (L), Pentagonal Icositetrahedron (R), Rhombic Triacontahedron, Pentakis Dodecahedron, Deltoidal Hexecontahedron, Triakis Icosahedron, Disdyakis Triacontahedron, Pentagonal Hexecontahedron

Strut lattices: SC – Simple Cubic, BCC – Body Centered, BCC-Z (BCC + axes), FCC – Face Centered, Octet Truss, Diamond Lattice, Kelvin Cell, Hexagonal Prism, Pyramidal, Double Pyramid, Re-entrant (Auxetic), Isotruss, Rhombicuboctahedron, Truncated Cube

Auxetic: Rotating Squares, Chiral Auxetic, Star-Polygon Auxetic

Polyhedral cells: Truncated Tetrahedron, Cuboctahedron, Rhombic Dodecahedron, Weaire-Phelan, Pyrochlore

Grid: Orthogrid, Isogrid, Kagome Lattice, Waffle Grid, Square Honeycomb, Triangular Honeycomb

Stochastic: Voronoi Lattice, Spinodal Lattice, Bone Trabecular, Stochastic Foam

Bio-inspired: Wood Cellular, Coral Lattice, Sponge Lattice, Bamboo Cellular

Metamaterial: Hierarchical Lattice, Graded Density, Multi-Topology

Algebraic surfaces (18)

Tangle Cube, Barth Sextic, Cayley Cubic, Kummer Quartic, Chmutov 6, Chair Surface, Genus-2 Surface, Heart Surface, Roman (Steiner), Clebsch Diagonal, Ding-Dong, Torus, Bretzel 2, Bumpy Sphere, Piriform, Nodal Cubic, Whitney Umbrella, Endrass Octic

$10

Have questions about this product?
Login to message

Details
Blender Extension Compatible Yes
Published about 12 hours ago
Blender Version 4.2 - 5.3
Extension Type Add-on
Render Engine Used Blender-Internal, Cycles, Eevee, Freestyle
License GPL