merge_indexed_colours

Function merge_indexed_colours 

Source
pub fn merge_indexed_colours(
    geometry_styles: &mut FxHashMap<u32, GeometryStyleInfo>,
    indexed_colours: &FxHashMap<u32, [f32; 4]>,
)
Expand description

Fold IfcIndexedColourMap dominant colours into the style index, keyed by target geometry id. or_insert preserves IFCSTYLEDITEM precedence: a geometry that already has a direct style keeps it; the indexed colour only fills the gaps (#913).