DfAM.in

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

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

Figure: Tessellation: accuracy against file size
Chordal error computed for a circle of radius 25 mm.

Key Relations: Tessellation Error and Implicit Operations

Equations for: Key relations: tessellation error and implicit operations

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

Equations for: Worked example: tessellation of a bore and size of a lattice file

Revision Notes: Geometry Representation

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.

1. In implicit modelling with fields that are negative inside the solid, the union of two solids is

2. Which statement about a binary STL file is correct?