pub struct FaceDirection {
pub direction: Direction,
pub area: f64,
pub spread: f64,
}Expand description
A direction a mesh’s flat faces face.
Fields§
§direction: DirectionThe area-weighted mean normal of the triangles that face it, a triangle facing the opposite way counted reversed. Its sense is the one more of their area faces; where both hold the same area to within the confusion distance’s worth across a face of that area, the sense whose largest component is positive.
area: f64The area of those triangles.
spread: f64The area-weighted RMS angle, in radians, between their normals and the direction: the noise, and any draft between faces merged into one direction.
Trait Implementations§
Source§impl Clone for FaceDirection
impl Clone for FaceDirection
impl Copy for FaceDirection
Source§impl Debug for FaceDirection
impl Debug for FaceDirection
Source§impl PartialEq for FaceDirection
impl PartialEq for FaceDirection
impl StructuralPartialEq for FaceDirection
Auto Trait Implementations§
impl Freeze for FaceDirection
impl RefUnwindSafe for FaceDirection
impl Send for FaceDirection
impl Sync for FaceDirection
impl Unpin for FaceDirection
impl UnsafeUnpin for FaceDirection
impl UnwindSafe for FaceDirection
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
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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.