pub struct StepExportOccurrence {
pub designator: String,
pub parent: usize,
pub child: usize,
pub placement: Mat4,
pub color: Option<[u8; 3]>,
}Expand description
One placement of child inside parent — a NEXT_ASSEMBLY_USAGE_OCCURRENCE.
Fields§
§designator: StringThe instance label: the placing component’s id (ACOMP3). Written into
the NAUO’s reference_designator, which is what the importer reads back
first, so an instance keeps its identity through the round trip.
parent: usizeIndex into StepAssemblyExport::products.
child: usizeIndex into StepAssemblyExport::products.
placement: Mat4child-local -> parent-local, row-major affine. Must be RIGID: a mirrored
or scaled instance has no AXIS2_PLACEMENT_3D and is rejected rather
than silently written as its rotation part.
color: Option<[u8; 3]>This instance’s own colour, over its part’s: written as a
CONTEXT_DEPENDENT_OVER_RIDING_STYLED_ITEM on each of the child’s own
solids in this occurrence’s context. Only a child that carries solids
of its own takes one (a sub-assembly instance’s colour would need a
path of occurrences as its context, which is not written).