pub struct Face3D {
pub outer: Vec<Point3D>,
pub holes: Vec<Vec<Point3D>>,
pub normal: Point3D,
}Expand description
A planar 3D face consisting of one counter-clockwise (CCW) outer loop (viewed from outside
along the outward normal) and zero or more clockwise (CW) interior hole loops.
Fields§
§outer: Vec<Point3D>§holes: Vec<Vec<Point3D>>§normal: Point3DImplementations§
Source§impl Face3D
impl Face3D
Sourcepub fn from_outer<P: Into<Point3D> + Copy>(outer_pts: &[P]) -> Self
pub fn from_outer<P: Into<Point3D> + Copy>(outer_pts: &[P]) -> Self
Construct a simple planar face from an outer loop of 3D vertices, computing its outward unit normal via Newell’s method.
Trait Implementations§
impl StructuralPartialEq for Face3D
Auto Trait Implementations§
impl Freeze for Face3D
impl RefUnwindSafe for Face3D
impl Send for Face3D
impl Sync for Face3D
impl Unpin for Face3D
impl UnsafeUnpin for Face3D
impl UnwindSafe for Face3D
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