Struct truck_polymesh::StandardAttribute
source · pub struct StandardAttribute {
pub position: Point3,
pub uv_coord: Option<Vector2>,
pub normal: Option<Vector3>,
}
Expand description
standard attribution
Fields§
§position: Point3
position
uv_coord: Option<Vector2>
texture uv coordinate
normal: Option<Vector3>
normal at vertex
Trait Implementations§
source§impl Clone for StandardAttribute
impl Clone for StandardAttribute
source§fn clone(&self) -> StandardAttribute
fn clone(&self) -> StandardAttribute
Returns a copy 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 StandardAttribute
impl Debug for StandardAttribute
source§impl<'de> Deserialize<'de> for StandardAttribute
impl<'de> Deserialize<'de> for StandardAttribute
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<StandardAttribute> for StandardAttribute
impl PartialEq<StandardAttribute> for StandardAttribute
source§fn eq(&self, other: &StandardAttribute) -> bool
fn eq(&self, other: &StandardAttribute) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.