spade::handles

Type Alias VoronoiFace

Source
pub type VoronoiFace<'a, V, DE, UE, F> = DynamicHandleImpl<'a, V, DE, UE, F, VoronoiFaceTag, PossiblyOuterTag>;
Expand description

A handle to a face of the voronoi diagram.

Aliased Type§

struct VoronoiFace<'a, V, DE, UE, F> { /* private fields */ }

Implementations§

Source§

impl<'a, V, DE, UE, F> VoronoiFace<'a, V, DE, UE, F>

Source

pub fn as_delaunay_vertex(&self) -> VertexHandle<'a, V, DE, UE, F>

Converts this face into its dual vertex of the Delaunay Triangulation.

Source

pub fn adjacent_edges( &self, ) -> impl DoubleEndedIterator<Item = DirectedVoronoiEdge<'a, V, DE, UE, F>>

Returns an iterator that returns all edges adjacent to this face.

The edges are returned in clockwise order.