pub struct StepOccurrence {
pub nauo_ref: usize,
pub parent: usize,
pub child: usize,
pub designator: String,
pub placement: [f64; 16],
pub rigid: bool,
}Expand description
One NAUO occurrence: a placement of child inside parent.
Fields§
§nauo_ref: usizeNEXT_ASSEMBLY_USAGE_OCCURRENCE entity id.
parent: usizeIndex into StepAssembly::products.
child: usizeIndex into StepAssembly::products.
designator: StringThe instance label (“bolt-3”) — see [nauo_designator] for which of the
NAUO’s several label attributes wins.
placement: [f64; 16]child-local → parent-local, row-major affine, translations in MILLIMETRES
(scaled by the PARENT representation’s unit, which is the frame the
placement is expressed in). NOT a world transform: the caller composes
these down from StepAssembly::roots.
rigid: boolRᵀR = I and det R = +1 within 1e-9 — i.e. the placement is a pure rotation + translation, representable as a translate/rotate component pose. A mirrored or scaled occurrence has no such representation and its non-rigid factor must be baked into a distinct part by the caller.
Trait Implementations§
Source§impl Clone for StepOccurrence
impl Clone for StepOccurrence
Source§fn clone(&self) -> StepOccurrence
fn clone(&self) -> StepOccurrence
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more