pub fn native_import_payload_with_appearance(
feature_name: &str,
solids: &[BrepSolid],
appearances: &[BodyAppearance],
) -> Result<String, String>Expand description
native_import_payload carrying the import’s COLOURS into the payload.
appearances is parallel to solids (see crate::BodyAppearance); &[]
is the colourless case and makes this identical to native_import_payload.
The colours are stamped into the AMBIENT scene-metadata store just before
snapshot_solids, which is exactly how they get INTO the payload — the
snapshot captures each stamped name’s own record alongside the geometry. So a
caller that runs this inside a crate::IsolatedSceneMetadata bracket (the
STEP-assembly part-document lane does, and must) gets the colours sealed into
the part and discarded from the live document, which is the whole point of
that bracket: the part carries its own metadata, the open document is not
touched.