pub struct Triangle {
pub a: DVec3,
pub b: DVec3,
pub c: DVec3,
}Expand description
One triangle, in metres.
Wound counter-clockwise seen from outside, which is what makes Mesh::volume positive. STL states
a normal per facet as well, and it is ignored: exporters disagree about it often enough that the
winding is the more reliable of the two, and carrying a normal that might contradict the vertices
would mean choosing between them at every use.
Fields§
§a: DVec3First vertex.
b: DVec3Second vertex.
c: DVec3Third vertex.
Implementations§
Trait Implementations§
impl Copy for Triangle
impl StructuralPartialEq for Triangle
Auto Trait Implementations§
impl Freeze for Triangle
impl RefUnwindSafe for Triangle
impl Send for Triangle
impl Sync for Triangle
impl Unpin for Triangle
impl UnsafeUnpin for Triangle
impl UnwindSafe for Triangle
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