Skip to main content

Module history

Module history 

Source
Expand description

History — the engine-owned, editable model recipe: the ordered feature history plus the rollback index (the feature the model is currently built up to). This is the SINGLE SOURCE OF TRUTH for the model — the UI keeps NO copy; it mutates and reads the history only through crate::engine_state::EngineState methods. That keeps one engine-owned history (UI-agnostic) and converges with the in-flight “whole history in Rust” pipeline migration — later this sinks into brep-kernel-rs proper without touching the UI.

Rolling to a step re-runs features[0..=rollback] through the SAME kernel pipeline: the full feature list stays in the request and stopAtId (the editor’s “stop at the expanded feature”) halts execution AFTER the rolled-to feature, so the kernel’s incremental history cache is RETAINED across rolls (no thrash) and the viewport shows the model as of that step.

Structs§

History
The engine-owned mutable history.