Skip to main content

Crate brep_simulation

Crate brep_simulation 

Source
Expand description

Motion studies for BREP assemblies.

A study lives in its assembly document’s simulation block (model). Motors are mates: the author picks distance or angle mates and drives each at a constant speed or along a motion profile, and every other part follows through the assembly solver on each frame. Clips drive the rest of the timeline (mate on/off, camera, visibility, transparency, sections, exploded views). sample turns a study at one time into what the caller applies: mate overrides for the solver and the display state. This crate needs neither the kernel nor a GPU.

Re-exports§

pub use model::Clip;
pub use model::ClipBody;
pub use model::Drive;
pub use model::Motor;
pub use model::Simulation;
pub use model::Study;
pub use sample::FrameSample;
pub use sample::MateOverride;

Modules§

forms
The Simulation pane’s forms: a motor’s and a clip’s fields as the app’s schema-driven form engine reads them (an inputParamsSchema of number, options, boolean and reference_selection fields), a FLAT view of the item for the form to edit (the engine binds top-level keys), which fields hide for the item’s current mode, and the way back — the patch simulation_patch merges into the item. Pure functions: the pane draws, this decides what it draws and what an edit means.
model
The simulation block: the motion studies of an assembly document.
sample
A study at one time: what the solver and the display are asked for.