Data & Export

G-code Export Check

What this shows

A rotating mesh supplies geometry to a G-code export call.

This example needs a Canvas2D-capable browser.

Loading scene…

Loading scene…

Key API excerpt

import * as EASEL from "@xsyetopz/easel";


const exporter = new EASEL.GCodeExporter();
const gcode = exporter.parse(mesh, {
  layerHeight: 0.25,
  extrusionPerUnit: 0.04,
});

mesh.userData.exportedLength = gcode.length;