Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

geop-cad-cli

Brief overview only — full documentation is coming later.

The geop command-line tool: compiles a part program to STL from the terminal.

cargo install --path cad/geop-cad-cli
geop compile part.program.json -o out/part.stl

geop compile

Builds a program (the JSON the web editor saves, see geop-ops-parts) and writes the part as an STL mesh. The mesh is the one the editor draws (see geop-ops-rasterize), so a compiled file looks exactly like the part on screen.

OptionMeaning
<program>the program to build, e.g. part.program.json
-o, --outputwhere to write the mesh; defaults to the program’s path with .program.json replaced by .stl
-s, --solid NAMEonly this solid, by name (e.g. extrude(hole)); repeatable; all solids by default
--asciiwrite ASCII STL instead of binary
-q, --qualityhow finely curved faces are meshed (default 24, as in the web editor); flat faces are exact regardless

geop examples

Writes every built-in example program as <name>.program.json together with its <name>.stl, into --out-dir (default examples). --only NAME restricts it to the named examples, and --ascii and --quality work as for compile.