Skip to main content

Crate brep_instructions

Crate brep_instructions 

Source
Expand description

Manufacturing instructions for BREP assemblies.

An instructions document is its own file: it places one revision of an assembly as a single grounded component and keeps what the author writes in its instructions block (model). This crate is the plain-data half: the block, the step-order wizard, step editing (edit), re-targeting to a new assembly revision (retarget), printed page layout (layout, with a step’s fields as a paper form: record), the fields a step records (fields) and the HTML player. source reads the wizard’s input straight from an assembly document’s JSON. It needs neither the kernel nor a GPU, so a server can serve the player and a test can run the wizard alone.

The schema feature derives JSON Schemas for the block’s and the fields’ types. See the README for a module-by-module summary.

Re-exports§

pub use model::Instructions;
pub use model::Step;
pub use model::Target;

Modules§

edit
Step editing: merge, split, insert, reorder, nest, move a part between steps, update a step’s fields, and each step’s presentation.
fields
Step fields: what the person doing the work records at a step.
layout
Printed pages from the document’s template: a cover, the parts list, the tools list, then the steps at 1, 2 or 4 per page, portrait or landscape.
model
The instructions block: everything an instructions document authors.
player
The interactive HTML player: a trusted template and its data format, kept apart.
record
The printed pages’ Record block: a step’s fields as a paper form.
retarget
Re-targeting to a new revision of the assembly.
source
Reading a wizard Level straight from an assembly document’s JSON.
wizard
The step-order wizard: proposes the step tree from an assembly’s occurrence tree and mate graph.