Class DelaunayTriangulation<TVertex, TCell>
Calculation and representation of Delaunay triangulation.
Implements
ITriangulation<TVertex, TCell>
Namespace: NWH.DWP2.MiConvexHull
Assembly: NWH.DWP2.dll
Syntax
public class DelaunayTriangulation<TVertex, TCell> : ITriangulation<TVertex, TCell> where TVertex : IVertex where TCell : TriangulationCell<TVertex, TCell>, new()
Type Parameters
| Name | Description |
|---|---|
| TVertex | The type of the t vertex. |
| TCell | The type of the t cell. |
Properties
| Edit this page View SourceCells
Cells of the triangulation.
Declaration
public IEnumerable<TCell> Cells { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<TCell> | The cells. |
Methods
| Edit this page View SourceCreate(IList<TVertex>)
Creates the Delaunay triangulation of the input data.
Declaration
public static DelaunayTriangulation<TVertex, TCell> Create(IList<TVertex> data)
Parameters
| Type | Name | Description |
|---|---|---|
| IList<TVertex> | data | The data. |
Returns
| Type | Description |
|---|---|
| DelaunayTriangulation<TVertex, TCell> | DelaunayTriangulation<TVertex, TCell>. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | data |
Implements
See Also
ITriangulation<TVertex, TCell>