[−][src]Struct voronator::delaunator::Triangulation
Represents a Delaunay triangulation for a given set of points. See example in delaunator
for usage details.
Fields
triangles: Vec<usize>
Contains the indices for each vertex of a triangle in the original array. All triangles are directed counter-clockwise.
halfedges: Vec<usize>
A Vec<usize>
of triangle half-edge indices that allows you to traverse the triangulation. i-th half-edge in the array corresponds to vertex triangles[i]
the half-edge is coming from. halfedges[i]
is the index of a twin half-edge in an adjacent triangle (or INVALID_INDEX
for outer half-edges on the convex hull).
hull: Vec<usize>
A Vec<usize>
array of indices that reference points on the convex hull of the input data, counter-clockwise.
inedges: Vec<usize>
A Vec<usize>
that contains indices for halfedges of points in the hull that points inwards to the diagram. Only for voronator
internal use.
outedges: Vec<usize>
A Vec<usize>
that contains indices for halfedges of points in the hull that points outwards to the diagram. Only for voronator
internal use.
Implementations
impl Triangulation
[src]
pub fn len(&self) -> usize
[src]
Returns the number of triangles calculated in the triangulation. Same as triangles.len() / 3
.
Auto Trait Implementations
impl RefUnwindSafe for Triangulation
impl Send for Triangulation
impl Sync for Triangulation
impl Unpin for Triangulation
impl UnwindSafe for Triangulation
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,