Struct shape_core::TriangleIndex
source · 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 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 more