Struct voronator::CentroidDiagram [−][src]
pub struct CentroidDiagram<C: Coord + Vector<C>> {
pub sites: Vec<C>,
pub delaunay: Triangulation,
pub centers: Vec<C>,
pub cells: Vec<Polygon<C>>,
pub neighbors: Vec<Vec<usize>>,
}
Expand description
Represents a centroidal tesselation diagram.
Fields
sites: Vec<C>
Contains the input data
delaunay: Triangulation
A Triangulation
struct that contains the Delaunay triangulation information.
centers: Vec<C>
Stores the centroid of each triangle
cells: Vec<Polygon<C>>
Stores the coordinates of each vertex of a cell, in counter-clockwise order
neighbors: Vec<Vec<usize>>
Stores the neighbor of each cell
Implementations
Creates a centroidal tesselation, if it exists, for a given set of points.
Points are represented here as a delaunator::Point
.