The public language guide
Pegmatite Script Guide.
Start with the essentials, then open the topics your model needs. Each document is plain-text Markdown, ready to read or give to an agent.
Modeling principles, essential syntax, local coordinate frames and a text-first validation workflow in one short guide.
Fetch by task
- Syntax, settings and scope
Name and string rules, statement forms, persistent settings, unset, scope and color.
- Placement, faces and frames
Anchors, alignment points and offsets, faces and frames, build planes, labels, lists and compounds.
- Booleans, slots and parts
Subtraction, intersection, symmetric difference, boolean scope, slots and parts.
- Expressions, functions and measures
Variables, arithmetic, comparisons, functions and measures.
- Solids reference
Every primitive, the polyhedra, meshes and numbered faces.
- Solid modifiers and edge selection
Rotate, scale, flip, shell, cut, fillet, chamfer and edge selection.
- Macros and conditionals
Reusable solids and shapes, parameters, conditionals and recursion.
- Patterns
Repeat, linear, circular, grid and mirror in full.
- 2D shapes
2D profiles, regular polygons, SVG paths and faces as shapes.
- 2D operations and groups
Offset, round, fill, 2D transforms and shape groups with booleans.
- Extrude and revolve
Every extrude option, and revolve.
- Helix, sweep and varying profiles
Helix, sweep along a path and varying profiles.
- Text and fonts
Lettering, font size and fonts.
- Tilings
Honeycomb, squares, triangles, stripes and Voronoi.
- Check, preview and export with the CLI
The check report, previews, export formats, fonts and exit codes.
Prefer a complete download? llms-full.txt combines all guide topics. The formal grammar and model gallery are optional resources.
For illustrated lessons, visit Learn. Keep the command reference open while modeling, or see how to work with an agent.