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.

Creates a centroidal tesselation, if it exists, for a given set of points.

Points are represented here as a (f64, f64) tuple.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.