pub struct Mesh {
pub vertices: Vertices,
pub triangles: Triangles,
}
Expand description
A triangle mesh
This is a very basic types that lacks any amenities for constructing it or for iterating over its data.
This is by design. Providing a generally usable and feature-rich triangle
mesh type is out of scope for this library. It is expected that users of
this library will use their own mesh type anyway, and the simplicity of
TriangleMesh
provides an easy target for conversion from such a type.
Fields§
§vertices: Vertices
The vertices of the mesh
This defines the vertices that are part of the mesh, but not the mesh’s
structure. See the triangles
field.
triangles: Triangles
The triangles that make up the mesh
Each triangle consists of indices that refer back to the vertices
field.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Mesh
impl<'de> Deserialize<'de> for Mesh
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 Mesh
impl PartialEq for Mesh
impl StructuralPartialEq for Mesh
Auto Trait Implementations§
impl RefUnwindSafe for Mesh
impl Send for Mesh
impl Sync for Mesh
impl Unpin for Mesh
impl UnwindSafe for Mesh
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