SiblingOfHalfEdge

Trait SiblingOfHalfEdge 

Source
pub trait SiblingOfHalfEdge {
    // Required methods
    fn are_siblings(&self, a: &Handle<HalfEdge>, b: &Handle<HalfEdge>) -> bool;
    fn get_sibling_of(
        &self,
        half_edge: &Handle<HalfEdge>,
    ) -> Option<Handle<HalfEdge>>;
}
Expand description

Queries related to the sibling of a HalfEdge

Required Methods§

Source

fn are_siblings(&self, a: &Handle<HalfEdge>, b: &Handle<HalfEdge>) -> bool

Indicate whether the provided half-edges are siblings

Source

fn get_sibling_of( &self, half_edge: &Handle<HalfEdge>, ) -> Option<Handle<HalfEdge>>

Retrieve the sibling of this half-edge

Returns None, if the provided half-edge is not part of the object this method is called on, or if the provided half-edge has no sibling within the object.

Implementors§