pub struct UsdMesh {
pub name: String,
pub positions: Vec<[f64; 3]>,
pub normals: Vec<[f64; 3]>,
pub uvs: Vec<[f64; 2]>,
pub face_vertex_counts: Vec<i32>,
pub face_vertex_indices: Vec<i32>,
pub subdivision_scheme: UsdSubdivScheme,
}Expand description
A USD Mesh primitive with geometry data.
Fields§
§name: StringName of this mesh prim.
positions: Vec<[f64; 3]>Vertex positions (point3f).
normals: Vec<[f64; 3]>Per-vertex or per-face-vertex normals (normal3f).
uvs: Vec<[f64; 2]>Texture coordinates (texCoord2f).
face_vertex_counts: Vec<i32>Number of vertices per face (e.g. [3, 3, 4]).
face_vertex_indices: Vec<i32>Indices into the points array.
subdivision_scheme: UsdSubdivSchemeSubdivision scheme.
Auto Trait Implementations§
impl Freeze for UsdMesh
impl RefUnwindSafe for UsdMesh
impl Send for UsdMesh
impl Sync for UsdMesh
impl Unpin for UsdMesh
impl UnsafeUnpin for UsdMesh
impl UnwindSafe for UsdMesh
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> 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