What a .kerf file describes
KerfScript uses syntax familiar to people who have used OpenSCAD, with features for flat parts and laser workflows. A source file can:
- Place geometry on cut, score and engrave layers.
- Use material thickness and beam width to size slots, finger joints and other features.
- Define parameters such as dimensions, labels and quantities.
- Lay parts out on sheets and export SVG or DXF.
A small example
This box uses the bundled library. The dimensions can be changed without redrawing six separate panels:
use <kerf/box> width = 120; // [40:5:400] depth = 80; // [40:5:400] height = 50; // [20:5:300] $thickness = 3; $kerf = 0.15; box([width, depth, height], lid = true);
Open the box in the browser playground to change its parameters and see the result. KerfScript also has a command line interface:
npx @mylasertools/kerfscript render box.kerf -o box.svg
Julia M