knotflow · Handbook
Deutsche Fassung: ../de/README.md
knotflow is a parametric 3D modeller in which you write models as text: a few lines that say what a part is made of and what its sizes depend on. Change a number, and the model is made anew; at the end there is a file for the 3D printer.
This guide is for everyone who wants to build models with it. It goes
by task: a vessel, a part with holes, a name tag, a pattern of hundreds
of copies. Every example can be computed just as it stands, in the
browser or with kf; that is checked before every release
(tools/check-guide.sh computes every model of the handbook
in both languages). Some programming experience helps, but is not
needed.
Try it without installing anything: fliegendreck.codefloe.page/knotflow.
Contents
- Getting started – in the browser, the first model, errors
- Tools:
kf, editor, AI – installingkf, computing models, language server,kf mcp, versions - The language in brief – values,
functions, lists, records,
match, libraries - Computing: numbers, points, querying curves – mathematics, vectors, random numbers, points and lengths of curves
- Shapes: curves and surfaces – drawing curves, turning, pulling up, surfaces through sections
- Vessels and walls – wall thickness,
shell,thicken,offset, holes in the wall - Combining solids – joining, subtracting, intersecting
- Rounded edges – rounding corners and edges
- Constructing – measures from
conditions: angles, touching,
solve; measuring withvolumeandarea - Patterns and copies – grids, circles,
symmetry, along curves, scattering over surfaces,
instance - Text, drawings, pictures, data – CSV, JSON, tables, fonts, SVG, PNG
- Organic forms – melted balls and rods,
fields,
simplify, statics and finite elements - Printing – closed solids, tolerance, preview, STL and 3MF, lying on the print bed, splitting large parts, rules of thumb
- Messages and remedies – what a message means and what helps, for shapes, walls, Boolean operations, rounded edges and constructions
Looking things up
- All functions:
kf helpon the command line; in the browser and the editor as help when you hover. Compact in one file: docs/llms.txt, the language card that AI assistants read as well. - Messages: chapter 14 lists them with their remedies.
- The grammar: docs/grammar.md.
- A tour of the language for people who know JavaScript or Haskell: docs/tour.md.
- The examples: in the browser under
Model, in the source in
examples/.
How it works inside
This guide explains how to use knotflow. How it is built – NURBS, the interpreter, Boolean operations, the language server – is told step by step in the lessons.