pub struct PolytopeHalfEdge { /* private fields */ }Expand description
One half-edge of a polytope — Domino’s dmSubEdge, four bytes.
Half-edges are stored in twin pairs at adjacent indices, and the ones bounding a face form a cycle through @ref nextEdge.
Implementations§
Source§impl PolytopeHalfEdge
impl PolytopeHalfEdge
Sourcepub fn twin_offset(&self) -> i8
pub fn twin_offset(&self) -> i8
Signed step to the paired half-edge: the twin of edge i is i + twinOffset. Only +1 and -1 occur, in equal numbers.
pub fn set_twin_offset(&mut self, value: i8)
Sourcepub fn origin_vertex(&self) -> u8
pub fn origin_vertex(&self) -> u8
Where this half-edge starts, indexing PolytopeShape::vertices.
pub fn set_origin_vertex(&mut self, value: u8)
Sourcepub fn face_index(&self) -> u8
pub fn face_index(&self) -> u8
The face this half-edge bounds, indexing PolytopeShape::facePlanes.
pub fn set_face_index(&mut self, value: u8)
pub fn set_next_edge(&mut self, value: u8)
Trait Implementations§
Source§impl Debug for PolytopeHalfEdge
impl Debug for PolytopeHalfEdge
Source§impl Default for PolytopeHalfEdge
impl Default for PolytopeHalfEdge
Source§impl Drop for PolytopeHalfEdge
impl Drop for PolytopeHalfEdge
impl Send for PolytopeHalfEdge
Auto Trait Implementations§
impl !Sync for PolytopeHalfEdge
impl Freeze for PolytopeHalfEdge
impl RefUnwindSafe for PolytopeHalfEdge
impl Unpin for PolytopeHalfEdge
impl UnsafeUnpin for PolytopeHalfEdge
impl UnwindSafe for PolytopeHalfEdge
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