Skip to main content

RunOutput

Struct RunOutput 

Source
pub struct RunOutput {
    pub snapshot: Vec<(String, u32, Option<SolidDisplay>)>,
    pub report: SceneBuildReport,
    pub provenance: Vec<(String, String)>,
    pub entity_origin: Vec<(String, String)>,
    pub assembly_poses: Vec<(String, Value)>,
    pub assembly_fixed: Vec<(String, bool)>,
    pub moved_solids: Vec<String>,
    pub imported_colors: Vec<(String, String)>,
}
Expand description

The delta a SceneRunner::run produces: the displayed KERNEL solids IN ORDER plus the run’s SceneBuildReport. The applier walks snapshot in order, reusing or replacing each entry (see the field docs).

Fields§

§snapshot: Vec<(String, u32, Option<SolidDisplay>)>

The displayed KERNEL solids IN ORDER. display: Some = freshly tessellated (new, or the handle changed since last emit); None = UNCHANGED — the applier keeps its existing SolidDisplay for this name, whose source_handle equals handle.

§report: SceneBuildReport§provenance: Vec<(String, String)>

Eager PROVENANCE: name -> creating-feature id for the run’s FINAL resident SOLIDS (same last-writer-wins fold as the display snapshot). Shipped WITH the run so the main thread can answer SOLID provenance without a cold execute_history — critical once the run lives on a background thread and the main-side registry is cold.

§entity_origin: Vec<(String, String)>

Eager ENTITY ORIGIN: face/edge NAME -> ORIGINATING feature id (FIRST writer in timeline order, never pruned — see SceneLayout::entity_origin). Shipped beside provenance so creating_feature can answer “which feature gave this face/edge its name?” (the “Edit owning feature” context action + the Info tab’s creatingFeature) with no cold re-run. Crosses the background-worker seam, so the serde round-trip test asserts it survives.

§assembly_poses: Vec<(String, Value)>

Assembly-solver POSE write-backs from this run’s constraint tail: (component feature id, {translate, rotateEulerDeg}) — read RUNNER-SIDE (the kernel assembly session is thread-local to the thread/worker that ran execute_history, so only the runner can see it) and shipped here so the engine folds them into the owning ACOMP features’ inputParams (the pose-authority contract, build-spec §6 step 4). Empty on a no-motion solve — a satisfied assembly must not churn feature fingerprints. #[serde(default)] keeps pre-assembly serialized replies deserializing.

§assembly_fixed: Vec<(String, bool)>

isFixed write-backs riding the same fold (the Fixed-constraint lane grounds a component); shape mirrors Self::assembly_poses.

§moved_solids: Vec<String>

Names of solids the solve re-posed IN PLACE this run (the display seam: their producing feature may have replayed reused, yet their geometry moved). The runner already defeated the handle-unchanged reuse fast path for these (their snapshot entries arrive Some, freshly tessellated); shipped for observability/tests. Empty on zero-mate/no-motion runs.

§imported_colors: Vec<(String, String)>

IMPORTED COLOURS: entity name -> "#RRGGBB" for every solid/face this run left a color scene-metadata record on (STEP presentation entities, read by brep_kernel::io/appearance.rs and stamped by IMPORT3D).

Read RUNNER-SIDE for the same reason as assembly_poses: the kernel’s scene-metadata store is thread-local to whoever ran execute_history, so a main-thread read under a background runner sees nothing. The applier folds these into the engine’s own crate::metadata::MetadataStore WITHOUT overwriting, so the Info window shows an imported colour and a user’s edit of it still wins.

Filtered to the names this run actually produced, so a colour left in the (never-cleared) kernel store by a previous document cannot bleed into this one.

Trait Implementations§

Source§

impl Clone for RunOutput

Source§

fn clone(&self) -> RunOutput

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RunOutput

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for RunOutput

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for RunOutput

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<T> WasmNotSend for T
where T: Send,