pub struct FaceDisplay {
pub name: String,
pub topo_id: u64,
pub tri_start: u32,
pub tri_count: u32,
pub kind: FaceKind,
pub color_override: Option<[f32; 3]>,
}Expand description
One face of a solid: a contiguous triangle range of the solid mesh plus the kernel face identity.
Fields§
§name: StringKernel face name (byte-exact pipeline name); empty when unnamed.
topo_id: u64Kernel topology face id.
tri_start: u32First triangle (not index) of this face in the mesh.
tri_count: u32Triangle count.
kind: FaceKind§color_override: Option<[f32; 3]>Per-FACE base colour, resolved from this face’s color metadata
attribute by RenderScene::apply_metadata_colors. Takes precedence
over the owning solid’s colour (and over faceColorMode), but selection
/ hover emphasis still wins over it. None = inherit the solid.
Trait Implementations§
Source§impl Clone for FaceDisplay
impl Clone for FaceDisplay
Source§fn clone(&self) -> FaceDisplay
fn clone(&self) -> FaceDisplay
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 moreSource§impl Debug for FaceDisplay
impl Debug for FaceDisplay
Source§impl<'de> Deserialize<'de> for FaceDisplay
impl<'de> Deserialize<'de> for FaceDisplay
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FaceDisplay
impl RefUnwindSafe for FaceDisplay
impl Send for FaceDisplay
impl Sync for FaceDisplay
impl Unpin for FaceDisplay
impl UnsafeUnpin for FaceDisplay
impl UnwindSafe for FaceDisplay
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more