pub enum Orientation {
Forward,
Reversed,
Internal,
External,
}Expand description
Which side of a boundary the material is on.
docs/DATA_MODEL.md §3.
Variants§
Forward
The material is on the surface’s default side.
Reversed
The material is on the other side.
Internal
The boundary lies inside the material: a stiffener edge embedded in a face, an edge that does not separate anything.
External
The boundary lies outside the material: reference geometry, carried along but bounding nothing.
Implementations§
Source§impl Orientation
impl Orientation
Sourcepub const fn compose(self, inner: Self) -> Self
pub const fn compose(self, inner: Self) -> Self
Compose an outer orientation with an inner one.
Applied at every level of descent: an edge’s orientation within a face depends on that face’s orientation within its shell, and so on to the root. Reversing a solid must therefore not touch a single child.
Internal and External absorb: a boundary that lies inside the
material stays inside it however the shape around it is turned.
Sourcepub const fn reversed(self) -> Self
pub const fn reversed(self) -> Self
This orientation reversed.
Internal and External are unaffected; neither names a side, so
neither has one to swap.
Sourcepub const fn is_boundary(self) -> bool
pub const fn is_boundary(self) -> bool
Whether this orientation names a side of the material at all.
Trait Implementations§
Source§impl Clone for Orientation
impl Clone for Orientation
Source§fn clone(&self) -> Orientation
fn clone(&self) -> Orientation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for Orientation
Source§impl Debug for Orientation
impl Debug for Orientation
Source§impl Default for Orientation
impl Default for Orientation
Source§fn default() -> Orientation
fn default() -> Orientation
impl Eq for Orientation
Source§impl Hash for Orientation
impl Hash for Orientation
Source§impl PartialEq for Orientation
impl PartialEq for Orientation
Source§fn eq(&self, other: &Orientation) -> bool
fn eq(&self, other: &Orientation) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Orientation
Auto Trait Implementations§
impl Freeze for Orientation
impl RefUnwindSafe for Orientation
impl Send for Orientation
impl Sync for Orientation
impl Unpin for Orientation
impl UnsafeUnpin for Orientation
impl UnwindSafe for Orientation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.