pub struct ProductMesh {
pub id: u64,
pub global_id: Option<String>,
pub type_name: String,
pub transform: Option<[f64; 16]>,
pub positions: Vec<f32>,
pub indices: Vec<u32>,
pub refusal: Option<GeometryRefusal>,
pub colour: Option<SurfaceColour>,
pub colour_refusal: Option<GeometryRefusal>,
pub closure: String,
}Expand description
One product’s Body as triangles.
Fields§
§id: u64The product’s entity id.
global_id: Option<String>Its GlobalId.
type_name: StringIts entity type, upper-case.
transform: Option<[f64; 16]>The world placement, 4x4 column-major, metres: a vertex’s world
position is this matrix applied to it. None when refused.
positions: Vec<f32>x, y, z per vertex, metres, relative to transform.
indices: Vec<u32>Three vertex indices per triangle.
refusal: Option<GeometryRefusal>Why there is no mesh. Empty arrays and no refusal is a product with no Body representation (an axis only).
colour: Option<SurfaceColour>The surface colour the Body’s items agree on; None when nothing
colours the product or its colour is refused.
colour_refusal: Option<GeometryRefusal>Why the colour could not be resolved: ambiguous (two styled items
or two colours at one level, a layer or profile set of several
materials, a constituent set no shape aspect resolves, or Body items
of different colours), or the shared codes invalid-model,
missing-reference, unsupported and budget-exceeded. Never
refuses the mesh itself.
closure: Stringsolid when the mesh bounds a volume the file declared, surface
for a surface (a surface model, a face, a trimmed surface: an area
and no volume), unknown for an empty or refused mesh (#458).
Trait Implementations§
Source§impl Clone for ProductMesh
impl Clone for ProductMesh
Source§fn clone(&self) -> ProductMesh
fn clone(&self) -> ProductMesh
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more