pub struct SurfaceColour {
pub red: f64,
pub green: f64,
pub blue: f64,
pub transparency: Option<f64>,
pub source: String,
pub source_entity: u64,
pub surface_style: u64,
pub source_materials: Vec<u64>,
}Expand description
The surface colour a mesh is painted with (#449).
Fields§
§red: f64Red, in [0, 1].
green: f64Green, in [0, 1].
blue: f64Blue, in [0, 1].
transparency: Option<f64>Transparency in [0, 1], 0 opaque; None when the file states
none, which the standard reads as opaque.
source: StringWhere the style was assigned: item (an IfcStyledItem on the
representation item), layer (an IfcPresentationLayerWithStyle),
material (the IfcMaterial’s
IfcMaterialDefinitionRepresentation) or materialSet (a layer,
profile or constituent set whose materials all state this colour,
#603), in that precedence.
source_entity: u64The IfcStyledItem, the layer assignment, the IfcMaterial or, for
materialSet, the set: an IfcMaterialLayerSet,
IfcMaterialProfileSet, IfcMaterialConstituentSet or
IfcMaterialList, or a usage of one (IfcMaterialLayerSetUsage,
IfcMaterialProfileSetUsage and its Tapering).
surface_style: u64The IfcSurfaceStyle the colour is read from.
source_materials: Vec<u64>When source is materialSet, the materials of the set that colour
the item: every one, or the constituents its shape aspects name
(ascending id, distinct); else empty. Last, so the earlier fields
keep their positions.
Trait Implementations§
Source§impl Clone for SurfaceColour
impl Clone for SurfaceColour
Source§fn clone(&self) -> SurfaceColour
fn clone(&self) -> SurfaceColour
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more