pub type UndirectedEdgeHandle<'a, V, DE = (), UE = (), F = ()> = DynamicHandleImpl<'a, V, DE, UE, F, UndirectedEdgeTag, InnerTag>;
Expand description
Handle to an undirected edge of a triangulation.
Use this handle to examine the edge’s surroundings, e.g. its origin and destination vertices or the adjacent face.
§Method overview
An undirected edge handle allows to explore the surroundings of an edge. This diagram shows which methods are available to extract information about the edge’s neighboring elements.
See also the handles module
Aliased Type§
struct UndirectedEdgeHandle<'a, V, DE = (), UE = (), F = ()> { /* private fields */ }
Implementations§
Source§impl<'a, V, DE, UE, F> UndirectedEdgeHandle<'a, V, DE, UE, F>
impl<'a, V, DE, UE, F> UndirectedEdgeHandle<'a, V, DE, UE, F>
Sourcepub fn vertices(&self) -> [VertexHandle<'a, V, DE, UE, F>; 2]
pub fn vertices(&self) -> [VertexHandle<'a, V, DE, UE, F>; 2]
Returns the edge’s two vertices.
The vertices are returned in any order.
Sourcepub fn as_directed(&self) -> DirectedEdgeHandle<'a, V, DE, UE, F>
pub fn as_directed(&self) -> DirectedEdgeHandle<'a, V, DE, UE, F>
Converts this directed edge into an undirected edge handle.
Sourcepub fn as_voronoi_edge(&self) -> UndirectedVoronoiEdge<'a, V, DE, UE, F>
pub fn as_voronoi_edge(&self) -> UndirectedVoronoiEdge<'a, V, DE, UE, F>
Returns the dual edge in the Voronoi diagram.
Sourcepub fn data(&self) -> &UE
pub fn data(&self) -> &UE
Returns a reference to the data associated with this directed edge.
Use Triangulation::undirected_edge_data_mut to modify the edge data.
Sourcepub fn is_part_of_convex_hull(&self) -> bool
pub fn is_part_of_convex_hull(&self) -> bool
Returns true
if the outer face is adjacent to any side of this undirected edge.
Source§impl<V, DE, UE, F> UndirectedEdgeHandle<'_, V, DE, UE, F>where
V: HasPosition,
impl<V, DE, UE, F> UndirectedEdgeHandle<'_, V, DE, UE, F>where
V: HasPosition,
Source§impl<V, DE, UE, F> UndirectedEdgeHandle<'_, V, DE, UE, F>
impl<V, DE, UE, F> UndirectedEdgeHandle<'_, V, DE, UE, F>
Source§impl<V, DE, UE, F> UndirectedEdgeHandle<'_, V, DE, CdtEdge<UE>, F>
impl<V, DE, UE, F> UndirectedEdgeHandle<'_, V, DE, CdtEdge<UE>, F>
Sourcepub fn is_constraint_edge(self) -> bool
pub fn is_constraint_edge(self) -> bool
Returns true
if this edge is a constraint edge.