Research · Compiling intent to fabrication

Gradient-informed toolpaths

Toolpaths that follow material gradients, so material-extrusion printing can build parts whose composition varies continuously in any direction.

The key idea. Material mixtures and many process parameters cannot simply be applied to G-code after slicing. A mixing nozzle needs time to purge to a new ratio, and a hotend needs time to reach a new temperature, so paths planned without the gradient in mind deposit the wrong composition in the wrong place. To print these gradients, toolpaths have to be planned around them from the start.

A wavy vase shown as a blue-and-yellow design render and as three prints, a blended mixing-system print, a banded five-toolhead print, and a black foaming-filament print, each with a close-up of the rim
One vase design with a multi-axis gradient (a), printed on (b) a filament mixing system with a 16-color palette, (c) a 5-toolhead printer moving between yellow and blue filaments, and (d) a single-material printer with temperature-responsive foaming filament, where the gradient becomes variable density.

The problem. Material-extrusion printers can blend materials, switch between them, or change nozzle temperature while printing, but those changes are not instant: material needs time to purge and temperatures need time to settle. Conventional slicers plan toolpaths without knowing about the gradient, so it gets smeared or broken up. Earlier methods were limited to simpler gradients, often along a single direction.

Two rectangles with horizontal toolpaths over a red-to-blue gradient; on the left the gradient runs top to bottom so each path stays at one color, on the right it runs left to right so the color changes along every path
Printing against the gradient (left), each path stays at nearly one composition, so slow changes like mixing ratio or temperature can keep up. Printing with the gradient (right), the composition has to change along every path, faster than the printer can respond.

The idea. OpenVCAD stores a part’s composition as a continuous field, so the slicer can extract iso-contours, lines of equal composition, and plan toolpaths around them. I developed two strategies. The first keeps familiar walls, infill, and skin, splits them into a palette of compositions, and interlocks neighboring regions (“zippering”) to avoid weak seams. The second fills each band of composition densely and prints directly along the gradient, which avoids purging and gives the smoothest transitions.

A gradient field with toolpaths overlaid, and the same toolpaths cut into segments colored by their position in the gradient
Strategy 1: keep familiar toolpaths. (a) A gradient that varies in X and Y is divided by iso-contours (dashed) into a palette of colors. (b) Ordinary walls and infill for one layer are split and assigned to those colors.
A dogbone outline, a gradient field divided into four regions, the outline cut at the region boundaries, and each region filled with concentric toolpaths
Strategy 2: print along the gradient. (a) The layer outline. (b) The material gradient, divided into regions. (c) Iso-lines cut the outline into one closed region per color. (d) Each region is filled densely.

Key result: complex gradients on three kinds of printers

The same designs print on three very different machines: a mixing hotend that blends two filaments, a toolchanger that switches among five filaments, and a single-material printer whose foaming filament expands more or less depending on nozzle temperature. The slicer turns arbitrarily complex three-dimensional gradient designs directly into printer-ready G-code, including multi-axis gradients that earlier slicing methods could not produce.

A grid of designs and prints, with columns for vertical, horizontal, circumferential, radial, and multi-axis gradients and rows for the design, a mixing printer, a five-toolhead printer, and foaming filament
Gradients across three kinds of printers. Vertical, horizontal, circumferential, radial, and multi-axis gradients designed in OpenVCAD (top row) and printed on a two-material mixing system, a 5-toolhead printer, and with foaming filament. Light-blue cells mark gradients made possible by this method; white cells reproduce capabilities shown in earlier work.
Photos of a mixing printer, a five-toolhead printer, and a single-material printer, with their filaments and the G-code command each uses to change material
Three printing modalities. Mixing ratio (M165), toolhead changes (T0 to T4), and nozzle temperature for foaming filament (M104).
A design render beside two rows of printed parts whose blue-to-yellow gradients become smoother as the number of colors increases
Gradient quality. Both strategies on a mixing printer as the palette grows: (a) Strategy 1 with 4 to 16 colors, (b) Strategy 2 with 12 to 48 colors.

This work is with Devon Beck (Draper) and Robert MacCurdy. The slicer is open source as VCAD-Slicer and builds on OpenVCAD.

Publications

  1. Implicit Toolpath Generation for Functionally Graded Additive Manufacturing via Gradient-Informed Slicing
    Implicit Toolpath Generation for Functionally Graded Additive Manufacturing via Gradient-Informed Slicing
    Charles Wade, Devon Beck, and Robert MacCurdy
    Additive Manufacturing 112, 104963, 2025