Skip to main content

Module program

Module program 

Source
Expand description

Program: an ordered list of operations that builds a Part, and ProgramRunner, which builds it incrementally.

Both are generic over the set of operations the program can use (see Operations): which operations those are is for an application to decide.

Structs§

Program
A recipe for building a Part: an ordered list of steps, each referring to what earlier ones built only by name. Those names come from step ids and sketch element ids, never from the internal ids a build happens to assign (see geop_ops), so a program means the same thing every time it is run — including after a round trip through JSON.
ProgramRunner
Builds a program the way an editor needs it built: incrementally, and only as far as asked.
Step
One step of a Program: an operation with its arguments, and the id everything it creates is named after. Serializes as {"id": "box", "operation": "extrude", "args": {...}}.
StepResult
How one step of a run went.