#[repr(transparent)]pub struct PolyhedralSurface<Pg: Polygon>(pub Vec<Pg>);Expand description
A contiguous collection of polygon faces in three-dimensional space.
Mirrors model::polyhedral_surface<Polygon> from
geometries/polyhedral_surface.hpp:48-83. As in Boost, construction does
not verify that faces are 3D or share boundary segments; those are validity
concerns rather than storage invariants.
Tuple Fields§
§0: Vec<Pg>Implementations§
Source§impl<Pg: Polygon> PolyhedralSurface<Pg>
impl<Pg: Polygon> PolyhedralSurface<Pg>
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Construct an empty polyhedral surface.
Mirrors the default constructor at
geometries/polyhedral_surface.hpp:74-76.
Trait Implementations§
Source§impl<Pg: Clone + Polygon> Clone for PolyhedralSurface<Pg>
impl<Pg: Clone + Polygon> Clone for PolyhedralSurface<Pg>
Source§fn clone(&self) -> PolyhedralSurface<Pg>
fn clone(&self) -> PolyhedralSurface<Pg>
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 moreSource§impl<Pg: Polygon> Default for PolyhedralSurface<Pg>
impl<Pg: Polygon> Default for PolyhedralSurface<Pg>
Source§impl<Pg: Polygon> Geometry for PolyhedralSurface<Pg>
impl<Pg: Polygon> Geometry for PolyhedralSurface<Pg>
Source§impl<Pg: Polygon> PolyhedralSurface for PolyhedralSurface<Pg>
impl<Pg: Polygon> PolyhedralSurface for PolyhedralSurface<Pg>
impl<Pg: PartialEq + Polygon> StructuralPartialEq for PolyhedralSurface<Pg>
Auto Trait Implementations§
impl<Pg> Freeze for PolyhedralSurface<Pg>
impl<Pg> RefUnwindSafe for PolyhedralSurface<Pg>where
Pg: RefUnwindSafe,
impl<Pg> Send for PolyhedralSurface<Pg>where
Pg: Send,
impl<Pg> Sync for PolyhedralSurface<Pg>where
Pg: Sync,
impl<Pg> Unpin for PolyhedralSurface<Pg>where
Pg: Unpin,
impl<Pg> UnsafeUnpin for PolyhedralSurface<Pg>
impl<Pg> UnwindSafe for PolyhedralSurface<Pg>where
Pg: UnwindSafe,
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