Enum shapefile::record::multipatch::Patch
source · pub enum Patch {
TriangleStrip(Vec<PointZ>),
TriangleFan(Vec<PointZ>),
OuterRing(Vec<PointZ>),
InnerRing(Vec<PointZ>),
FirstRing(Vec<PointZ>),
Ring(Vec<PointZ>),
}
Variants§
TriangleStrip(Vec<PointZ>)
A linked strip of triangles, where every vertex (after the first two)completes a new triangle.
A new triangle is always formed by connecting the new vertex with its two immediate predecessors
TriangleFan(Vec<PointZ>)
A linked fan of triangles, where every vertex (after the first two) completes a new triangle.
A new triangle is always formed by connecting the new vertex with its immediate predecessor and the first vertex of the part.
OuterRing(Vec<PointZ>)
The outer ring of a polygon.
InnerRing(Vec<PointZ>)
A hole of a polygon
FirstRing(Vec<PointZ>)
The first ring of a polygon of an unspecified type
Ring(Vec<PointZ>)
A ring of a polygon of an unspecified type
Implementations§
Trait Implementations§
source§impl PartialEq for Patch
impl PartialEq for Patch
impl StructuralPartialEq for Patch
Auto Trait Implementations§
impl Freeze for Patch
impl RefUnwindSafe for Patch
impl Send for Patch
impl Sync for Patch
impl Unpin for Patch
impl UnwindSafe for Patch
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