pub struct StepProduct {
pub pd_ref: usize,
pub name: String,
pub id: String,
pub bodies: Vec<BrepSolid>,
pub appearances: Vec<BodyAppearance>,
pub failed_bodies: usize,
}Expand description
One PRODUCT_DEFINITION in the file’s product structure.
Fields§
§pd_ref: usizePRODUCT_DEFINITION entity id — the stable identity and dedup key.
name: StringPRODUCT.name, or pd#<id> when the file carries no PRODUCT chain.
id: StringPRODUCT.id — the vendor part number, for the BOM. May be empty.
bodies: Vec<BrepSolid>This product’s OWN solids, in its OWN local frame and at its OWN unit scale. Empty ⇒ a pure assembly node (structure, no geometry).
appearances: Vec<BodyAppearance>The styled colour of each entry of bodies, PARALLEL to it (index i
is body i). Default-filled when the file carries no presentation
entities, so it is always the same length as bodies and a caller can
zip without a length check.
failed_bodies: usizeBodies of this product that did not reconstruct. Graceful degradation: counted, never fatal, and never a reason to reject the file.
Trait Implementations§
Source§impl Clone for StepProduct
impl Clone for StepProduct
Source§fn clone(&self) -> StepProduct
fn clone(&self) -> StepProduct
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for StepProduct
impl !Sync for StepProduct
impl Freeze for StepProduct
impl Send for StepProduct
impl Unpin for StepProduct
impl UnsafeUnpin for StepProduct
impl UnwindSafe for StepProduct
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more