#[non_exhaustive]pub enum FaceGroups<'a> {
Single,
PerTriangle(&'a [FaceGroup]),
Planar,
}Expand description
The face groups of one mesh.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Single
Every triangle is in FaceGroup(0).
PerTriangle(&'a [FaceGroup])
One id per triangle; the length equals the triangle count.
Planar
The planar patches of the mesh (ADR 0106). Two triangles are in one
group when a chain of triangles joins them in which every two
consecutive triangles share an edge that has exactly these two
triangles and whose model-space normals are parallel and point the
same way. Parallel and same-facing is decided exactly as
n1 × n2 = 0 in all three components and n1 · n2 > 0; no tolerance
enters. A group’s id is FaceGroup(i) for the smallest triangle
index i in it, so it does not depend on the view or on the winding
of the whole mesh. Providers resolve the groups before use.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for FaceGroups<'a>
impl<'a> Clone for FaceGroups<'a>
Source§fn clone(&self) -> FaceGroups<'a>
fn clone(&self) -> FaceGroups<'a>
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 moreimpl<'a> Copy for FaceGroups<'a>
Source§impl<'a> Debug for FaceGroups<'a>
impl<'a> Debug for FaceGroups<'a>
impl<'a> Eq for FaceGroups<'a>
Source§impl<'a> PartialEq for FaceGroups<'a>
impl<'a> PartialEq for FaceGroups<'a>
impl<'a> StructuralPartialEq for FaceGroups<'a>
Auto Trait Implementations§
impl<'a> Freeze for FaceGroups<'a>
impl<'a> RefUnwindSafe for FaceGroups<'a>
impl<'a> Send for FaceGroups<'a>
impl<'a> Sync for FaceGroups<'a>
impl<'a> Unpin for FaceGroups<'a>
impl<'a> UnsafeUnpin for FaceGroups<'a>
impl<'a> UnwindSafe for FaceGroups<'a>
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