3dSynth

Docs / Node Sculptor

Open in the interactive docs reader

Contour Slice

Slice a Mesh against a stack of horizontal planes, emitting one extrusion segment per closed contour per layer. This is the bridge from arbitrary 3D meshes (generated by Revolve, Loft, SDF, imports, etc.) into a print-ready Toolpath.

Node

Interactive preview is available in the interactive reader.

Sockets

mesh (in)
Mesh. Required — non-empty.
layers (in)
Int. Optional layer-count override.
layerHeight (in)
Float. Optional override.
zStart (in)
Float. Optional override.
toolpath (out)
Toolpath — one segment per closed contour per layer.

Parameters

Layers
Number of horizontal slice levels. Default: 40.
Layer H (mm)
Distance between consecutive Z planes. Default: 0.2.
Z Start (mm)
Z of the first slice plane. Default: 0.2.
Snap eps (mm)
Snap tolerance used when chaining open segments into closed loops. Smaller = stricter. Default: 0.001.

How It Works

  1. Build a schedule of Z planes at zStart, zStart + layerHeight, ….
  2. For each plane, intersect every triangle that straddles it to produce line segments.
  3. Chain those segments head-to-tail within the snap tolerance; chains whose endpoints meet close into a loop.
  4. Emit each closed loop as one Toolpath segment.

Open chains (e.g. from non-watertight meshes) are discarded with a Problem so your Output previews a visible gap where the mesh isn't sealed — handy diagnostic signal.

Tips