pub struct ContourRegion {
pub exterior: Vec<TernaryCoordinate>,
pub holes: Vec<Vec<TernaryCoordinate>>,
}Expand description
One connected filled-band region.
Rings are open: the final edge back to the first point is implicit. Exterior rings are counter-clockwise in semantic (a, b) coordinates; holes are clockwise.
Fields§
§exterior: Vec<TernaryCoordinate>Counter-clockwise exterior ring in semantic A/B/C coordinates.
holes: Vec<Vec<TernaryCoordinate>>Clockwise interior hole rings.
Implementations§
Trait Implementations§
Source§impl Clone for ContourRegion
impl Clone for ContourRegion
Source§fn clone(&self) -> ContourRegion
fn clone(&self) -> ContourRegion
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 Debug for ContourRegion
impl Debug for ContourRegion
Source§impl PartialEq for ContourRegion
impl PartialEq for ContourRegion
impl StructuralPartialEq for ContourRegion
Auto Trait Implementations§
impl Freeze for ContourRegion
impl RefUnwindSafe for ContourRegion
impl Send for ContourRegion
impl Sync for ContourRegion
impl Unpin for ContourRegion
impl UnsafeUnpin for ContourRegion
impl UnwindSafe for ContourRegion
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