Skip to main content

import_step_with_appearance

Function import_step_with_appearance 

Source
pub fn import_step_with_appearance(
    text: &str,
) -> Result<(Vec<BrepSolid>, Vec<BodyAppearance>), String>
Expand description

import_step plus the file’s PRESENTATION colours: one BodyAppearance per returned solid, in the same order.

This is the lane the IMPORT3D feature uses, because colour is stamped as scene metadata on the names IT chooses — see feature_pipeline::features::import3d and io/appearance.rs for the record shape. A file with no presentation entities returns default (empty) appearances, never a short vector, so callers can zip unconditionally.