DfAM Practitioner Program › Module 2 › Lesson 7
Module 2 · Lesson 7 of 42 · about 1 hour
Geometry Representation for DfAM
Limits of B-rep and STL, implicit and voxel models, 3MF extensions, direct slicing
Why This Topic Matters
Where we are: Module 1 showed what AM can make. Before any optimisation, the design must be stored in a form that can hold lattices, gradients and millions of features.
Motivation: Many DfAM ideas fail in practice because the CAD system or the file format cannot carry them. A lattice that looks simple on screen can produce a file too large to slice.
Analogy: A photograph can be stored pixel by pixel or as a short drawing instruction. For a simple shape the instruction is far smaller and stays sharp at any zoom. Implicit models are the instruction.
Industry practice: nTopology, Rhino with Grasshopper and newer CAD kernels use implicit or field-based models. Machine vendors now accept 3MF and sliced data directly.
State of the art: Representation is an open topic: conversion between implicit, mesh and B-rep models without loss, and slicing directly from fields, are both active research areas.
Where B-Rep and STL Reach Their Limits
Boundary representation: stores faces, edges and vertices with exact surfaces. It is ideal for prismatic parts but slows sharply when a lattice adds hundreds of thousands of faces.
STL: approximates the surface by triangles. It has no units, no topology, no colour or material, and curved surfaces carry a chordal error that depends on the export settings.
File size: every triangle costs 50 bytes in a binary STL. Fine lattices and smooth organic surfaces need millions of triangles.
Robustness: Boolean operations between a lattice and a solid often fail in B-rep and mesh form because of near-coincident and sliver geometry.
No interior: both forms describe only the skin. Material gradients, density fields and anisotropy directions have nowhere to be stored.
Consequence: the geometric model, and not the machine, is frequently the bottleneck for hierarchical and graded designs.
Implicit and Function-Based Modelling
- An implicit model defines a solid by a function of position: points where the function is negative are inside, positive are outside, and zero is the surface.
- Signed distance fields are a common choice: the function value is the distance to the surface, so an offset is made simply by adding a constant.
- Boolean operations become arithmetic: union is the minimum of two fields, intersection is the maximum. They never fail, however complex the shapes.
- Blends and smooth transitions between a lattice and a skin are obtained by smooth minimum functions, which is hard to do reliably in B-rep.
- Triply periodic minimal surfaces such as the gyroid are written directly as short trigonometric expressions, so a whole lattice costs a few bytes until it is evaluated.
- The field is evaluated only where and when needed: on a slice plane for manufacturing, or on a grid for simulation.
Voxels, 3MF and Direct Slicing
Voxel models: store a value for each small cube. They hold any geometry and any material distribution, and suit image-based data from CT, but memory grows with the cube of resolution.
3MF: an XML-based format with units, colour and multiple materials. Extensions add beam lattices (nodes, struts and radii), slice stacks and volumetric data defined by fields.
AMF: the ISO/ASTM 52915 format, which supports curved triangles, materials and graded compositions by formula, but has seen limited industrial uptake.
Direct slicing: contours are computed straight from the B-rep or the implicit field on each layer plane, avoiding the mesh and its chordal error altogether.
Machine side: some machines accept slice or scan-vector data directly, which keeps file size manageable for dense lattices.
Choice in practice: use B-rep for functional interfaces, implicit fields for lattices and transitions, and exchange through 3MF or slices.
Tessellation: Accuracy Against File Size
- A circle of radius R drawn with n straight segments deviates from the true circle by the chordal error.
- The error falls roughly with the square of n, so each halving of error costs about 40 % more segments, and more triangles in both directions on a curved surface.
- A coarse export leaves visible facets and real dimensional error on cylindrical fits; a fine export of a lattice may be too large to handle.
- Set the export tolerance from the process capability (Lesson 3): there is no gain in a chordal error far below the machine repeatability.

Key Relations: Tessellation Error and Implicit Operations

Worked Example: Tessellation of a Bore and Size of a Lattice File

Revision Notes: Geometry Representation
- B-rep and STL describe only the surface; they struggle with very large feature counts and cannot hold material or density fields.
- STL accuracy is set by the chordal error, and file size grows by 50 bytes per triangle.
- Implicit models define geometry by a function. Booleans, offsets and blends become simple arithmetic and are robust.
- Voxel models hold arbitrary geometry and material but need memory that grows with the cube of resolution.
- 3MF with its beam-lattice, slice and volumetric extensions, and direct slicing, avoid the mesh bottleneck.
- Use each representation where it is strong, and set tessellation tolerance from process capability.
Explore Further
Paper: Pasko et al., 'Function representation in geometric modeling: concepts, implementation and applications', The Visual Computer 11, 1995. The origin of F-rep modelling.
Specification: 3MF Consortium, 3MF Core Specification and the Beam Lattice and Volumetric extensions (3mf.io).
Software activity: Build the same 20 mm lattice cube in a B-rep CAD system and in nTopology. Compare model size, rebuild time and exported file size.
Coding exercise: Write a Python function that evaluates a gyroid field on a plane z = constant and plots the zero contour. This is direct slicing of an implicit model.
Think about it: Why can an implicit Boolean never 'fail', while a B-rep Boolean sometimes does?
Quick Check
Pick an answer for each question, then check.