pub struct TriangleData {
pub vertices: [usize; 3],
pub centroid: Vec3,
pub normal: Vec3,
pub area: f64,
pub neighbors: [Option<usize>; 3],
pub feature_edges: [bool; 3],
}Expand description
Geometry and topology derived for one input triangle.
Fields§
§vertices: [usize; 3]Indices of the triangle’s three vertices.
centroid: Vec3Arithmetic mean of the three vertex positions.
normal: Vec3Unit normal derived from winding, or zero for a rejected triangle.
area: f64Triangle area, or zero when the triangle is degenerate.
neighbors: [Option<usize>; 3]Adjacent triangle across each directed edge, when manifold and present.
feature_edges: [bool; 3]Whether each edge is a boundary, non-manifold edge, or sharp feature.
Trait Implementations§
Source§impl Clone for TriangleData
impl Clone for TriangleData
Source§fn clone(&self) -> TriangleData
fn clone(&self) -> TriangleData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TriangleData
impl Debug for TriangleData
Source§impl PartialEq for TriangleData
impl PartialEq for TriangleData
impl StructuralPartialEq for TriangleData
Auto Trait Implementations§
impl Freeze for TriangleData
impl RefUnwindSafe for TriangleData
impl Send for TriangleData
impl Sync for TriangleData
impl Unpin for TriangleData
impl UnsafeUnpin for TriangleData
impl UnwindSafe for TriangleData
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