pub struct Mesh { /* private fields */ }Expand description
Represents a 3D mesh. It consists of a list of faces, where each face is defined by three vertex indices, and a list of attributes (Attribute) that can be associated with the mesh.
Implementations§
Source§impl Mesh
impl Mesh
pub fn get_attributes(&self) -> &[Attribute]
pub fn get_faces(&self) -> &[[PointIdx; 3]]
pub fn get_attributes_mut(&mut self) -> &mut [Attribute]
pub fn get_attributes_mut_by_indices<'a>( &'a mut self, indices: &[usize], ) -> Vec<&'a mut Attribute>
pub fn get_name(&self) -> &str
pub fn set_name(&mut self, name: &str)
pub fn new() -> Self
pub fn diff_l2_norm(&self, other: &Self) -> f64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mesh
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
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