#[non_exhaustive]pub enum MeshRole {
Solid,
Sheet,
}Expand description
How an input mesh occludes and whether it is capped by a near plane.
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.
Solid
Closed, consistently wound two-manifold. A near clipping plane that
cuts it (some vertex beyond the plane, W > near, and some not)
leaves a cap that occludes: a point with W < near, farther from the
viewer than the plane, is hidden by the cap when the point of the plane
above it is inside the solid. A face of the solid in the near plane is
no special case: it hides what lies below it itself.
Sheet
Edge-manifold with consistent winding, open or closed. Never capped.
Trait Implementations§
impl Copy for MeshRole
impl Eq for MeshRole
impl StructuralPartialEq for MeshRole
Auto Trait Implementations§
impl Freeze for MeshRole
impl RefUnwindSafe for MeshRole
impl Send for MeshRole
impl Sync for MeshRole
impl Unpin for MeshRole
impl UnsafeUnpin for MeshRole
impl UnwindSafe for MeshRole
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