pub enum MeshColours {
PerVertex(Vec<[f64; 4]>),
PerTriangle(Vec<[f64; 4]>),
PerCorner(Vec<[[f64; 4]; 3]>),
}Expand description
The colours a mesh read carries, in the most compact form that says exactly what the file said.
A file colours a mesh at the corners of its triangles, or at its vertices, or per face. Where every corner meeting at a vertex has the same colour, they are given per vertex; else, where each triangle’s three corners agree, per triangle; else per corner.
Variants§
PerVertex(Vec<[f64; 4]>)
One RGBA colour per vertex of the mesh.
PerTriangle(Vec<[f64; 4]>)
One RGBA colour per triangle.
PerCorner(Vec<[[f64; 4]; 3]>)
Three RGBA colours per triangle, at its corners in order.
Implementations§
Trait Implementations§
Source§impl Clone for MeshColours
impl Clone for MeshColours
Source§impl Debug for MeshColours
impl Debug for MeshColours
Source§impl PartialEq for MeshColours
impl PartialEq for MeshColours
impl StructuralPartialEq for MeshColours
Auto Trait Implementations§
impl Freeze for MeshColours
impl RefUnwindSafe for MeshColours
impl Send for MeshColours
impl Sync for MeshColours
impl Unpin for MeshColours
impl UnsafeUnpin for MeshColours
impl UnwindSafe for MeshColours
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.