Class VoronoiMesh<TVertex, TCell, TEdge>
A representation of a voronoi mesh.
Namespace: NWH.DWP2.MiConvexHull
Assembly: NWH.DWP2.dll
Syntax
public class VoronoiMesh<TVertex, TCell, TEdge> where TVertex : IVertex where TCell : TriangulationCell<TVertex, TCell>, new() where TEdge : VoronoiEdge<TVertex, TCell>, new()
Type Parameters
| Name | Description |
|---|---|
| TVertex | The type of the t vertex. |
| TCell | The type of the t cell. |
| TEdge | The type of the t edge. |
Properties
| Edit this page View SourceEdges
Edges connecting the cells. The same information can be retrieved Cells' Adjacency.
Declaration
public IEnumerable<TEdge> Edges { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<TEdge> | The edges. |
Vertices
Vertices of the diagram.
Declaration
public IEnumerable<TCell> Vertices { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<TCell> | The vertices. |
Methods
| Edit this page View SourceCreate(IList<TVertex>)
Create a Voronoi diagram of the input data.
Declaration
public static VoronoiMesh<TVertex, TCell, TEdge> Create(IList<TVertex> data)
Parameters
| Type | Name | Description |
|---|---|---|
| IList<TVertex> | data | The data. |
Returns
| Type | Description |
|---|---|
| VoronoiMesh<TVertex, TCell, TEdge> | VoronoiMesh<TVertex, TCell, TEdge>. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | data |