pub enum ShadingKind {
FunctionBased = 1,
Axial = 2,
Radial = 3,
FreeFormMesh = 4,
LatticeMesh = 5,
CoonsMesh = 6,
TensorMesh = 7,
}Expand description
Which geometry a shading paints.
Variants§
FunctionBased = 1
Type 1: a function over a rectangle of the shading’s own space.
Axial = 2
Type 2: a linear gradient along an axis.
Radial = 3
Type 3: a gradient between two circles.
FreeFormMesh = 4
Type 4: free-form Gouraud triangles.
LatticeMesh = 5
Type 5: lattice-form Gouraud triangles.
CoonsMesh = 6
Type 6: Coons patches.
TensorMesh = 7
Type 7: tensor-product patches.
Implementations§
Source§impl ShadingKind
impl ShadingKind
Sourcepub fn reads_edge_flags(self) -> bool
pub fn reads_edge_flags(self) -> bool
Whether a mesh of this kind carries a per-vertex edge flag.
Only the lattice type does not: its topology is the row length, so
its /BitsPerFlag is never read and never validated.
Trait Implementations§
Source§impl Clone for ShadingKind
impl Clone for ShadingKind
Source§fn clone(&self) -> ShadingKind
fn clone(&self) -> ShadingKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShadingKind
Source§impl Debug for ShadingKind
impl Debug for ShadingKind
impl Eq for ShadingKind
Source§impl Hash for ShadingKind
impl Hash for ShadingKind
Source§impl PartialEq for ShadingKind
impl PartialEq for ShadingKind
impl StructuralPartialEq for ShadingKind
Auto Trait Implementations§
impl Freeze for ShadingKind
impl RefUnwindSafe for ShadingKind
impl Send for ShadingKind
impl Sync for ShadingKind
impl Unpin for ShadingKind
impl UnsafeUnpin for ShadingKind
impl UnwindSafe for ShadingKind
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