pub enum BoundaryIndex {
Outer,
Hole(usize),
}Expand description
Which of a face’s boundaries: its one outer loop, or the n-th hole.
A face’s boundaries are not interchangeable — the outer loop bounds the
material and every hole removes from it — so code that locates a boundary
says which kind it found rather than returning a bare index into one
flat list. That distinction is exactly what splice_edge_into_face needs
to decide whether joining two loops merges two holes, absorbs a hole into
the outer loop, or splits the face in two.
Variants§
Trait Implementations§
Source§impl Clone for BoundaryIndex
impl Clone for BoundaryIndex
Source§fn clone(&self) -> BoundaryIndex
fn clone(&self) -> BoundaryIndex
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 moreimpl Copy for BoundaryIndex
Source§impl Debug for BoundaryIndex
impl Debug for BoundaryIndex
impl Eq for BoundaryIndex
Source§impl PartialEq for BoundaryIndex
impl PartialEq for BoundaryIndex
Source§fn eq(&self, other: &BoundaryIndex) -> bool
fn eq(&self, other: &BoundaryIndex) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BoundaryIndex
Auto Trait Implementations§
impl Freeze for BoundaryIndex
impl RefUnwindSafe for BoundaryIndex
impl Send for BoundaryIndex
impl Sync for BoundaryIndex
impl Unpin for BoundaryIndex
impl UnsafeUnpin for BoundaryIndex
impl UnwindSafe for BoundaryIndex
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