pub struct TriangleIndex {
pub a: usize,
pub b: usize,
pub c: usize,
}
Expand description
Clockwise means the front side, and counterclockwise means the back side. When rendering, only the front side is rendered by default, and the back side is invisible.
If you need double-sided display, you need to draw the reverse side at the same time, you can call !self to get the reverse side
Fields§
§a: usize
The 1st vertex in the triangle index.
b: usize
The 2nd vertex in the triangle index.
c: usize
The 3rd vertex in the triangle index.
Implementations§
Source§impl TriangleIndex
impl TriangleIndex
Trait Implementations§
Source§impl Clone for TriangleIndex
impl Clone for TriangleIndex
Source§fn clone(&self) -> TriangleIndex
fn clone(&self) -> TriangleIndex
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 TriangleIndex
impl Debug for TriangleIndex
Source§impl Display for TriangleIndex
impl Display for TriangleIndex
Source§impl Neg for TriangleIndex
impl Neg for TriangleIndex
impl Copy for TriangleIndex
Auto Trait Implementations§
impl Freeze for TriangleIndex
impl RefUnwindSafe for TriangleIndex
impl Send for TriangleIndex
impl Sync for TriangleIndex
impl Unpin for TriangleIndex
impl UnwindSafe for TriangleIndex
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> 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