pub struct DisplacementTriangle {
pub v1: u32,
pub v2: u32,
pub v3: u32,
pub d1: Option<u32>,
pub d2: Option<u32>,
pub d3: Option<u32>,
pub p1: Option<u32>,
pub p2: Option<u32>,
pub p3: Option<u32>,
pub pid: Option<u32>,
}Expand description
A triangle in a displacement mesh with displacement coordinate indices.
Fields§
§v1: u32Index of the first vertex.
v2: u32Index of the second vertex.
v3: u32Index of the third vertex.
d1: Option<u32>Displacement coordinate index for v1 (optional).
d2: Option<u32>Displacement coordinate index for v2 (optional).
d3: Option<u32>Displacement coordinate index for v3 (optional).
p1: Option<u32>Property index for v1 (optional).
p2: Option<u32>Property index for v2 (optional).
p3: Option<u32>Property index for v3 (optional).
pid: Option<u32>Property ID for the entire triangle (optional).
Trait Implementations§
Source§impl Clone for DisplacementTriangle
impl Clone for DisplacementTriangle
Source§fn clone(&self) -> DisplacementTriangle
fn clone(&self) -> DisplacementTriangle
Returns a duplicate of the value. Read more
1.0.0 · 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 DisplacementTriangle
impl Debug for DisplacementTriangle
Source§impl Default for DisplacementTriangle
impl Default for DisplacementTriangle
Source§fn default() -> DisplacementTriangle
fn default() -> DisplacementTriangle
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DisplacementTriangle
impl<'de> Deserialize<'de> for DisplacementTriangle
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
Source§impl PartialEq for DisplacementTriangle
impl PartialEq for DisplacementTriangle
Source§impl Serialize for DisplacementTriangle
impl Serialize for DisplacementTriangle
impl Copy for DisplacementTriangle
impl StructuralPartialEq for DisplacementTriangle
Auto Trait Implementations§
impl Freeze for DisplacementTriangle
impl RefUnwindSafe for DisplacementTriangle
impl Send for DisplacementTriangle
impl Sync for DisplacementTriangle
impl Unpin for DisplacementTriangle
impl UnwindSafe for DisplacementTriangle
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
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