pub struct Ring {
pub edges: Vec<(u32, u32)>,
pub quads: Vec<usize>,
pub closed: bool,
}Expand description
The edge ring of an edge: the edges reached from it by crossing quads to their opposite side, until the ring closes, or meets the cage’s boundary or a face that is not a quad on both ends.
Fields§
§edges: Vec<(u32, u32)>Its edges in order, each directed so that the same side of the
ring comes first: splitting every edge at a fraction t from its
first vertex puts the new loop at t of the way across the ring.
quads: Vec<usize>The quads crossed, by index, in the same order: the one between
edges[i] and edges[i + 1] — and, for a closed ring, between the
last edge and the first.
closed: boolTrait Implementations§
impl Eq for Ring
impl StructuralPartialEq for Ring
Auto Trait Implementations§
impl Freeze for Ring
impl RefUnwindSafe for Ring
impl Send for Ring
impl Sync for Ring
impl Unpin for Ring
impl UnsafeUnpin for Ring
impl UnwindSafe for Ring
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.