THREE.JS / EXPORTER CONTRACT

Mesh to toolpath.

The pinned exporter example hands a Z-up mesh to an external Polyslice slicer and downloads G-code. This local study keeps that handoff, printer/filament policy, primitive selection, slicer controls, visible toolpath, and download contract observable without claiming the absent external library’s algorithmic parity.

INITIALIZINGWEBGL2 / G-CODE
Creating a Z-up geometry preview.
geometry
—
layers
—
commands
—
filament
—
G-code bytes
—
sample avg / p95
—
No export yet.

The official CDN Polyslice package, exact slicing algorithm/profiles, GUI/Stats presentation, official page/pixel composition, printer-command conformance, device/backend breadth, generalized performance, context-loss/leak stress, and whole-example fidelity remain separate.

Sources: official G-code exporter example · Polyslice · OrbitControls