Class DelaunayTriangulationBuilder
A utility class which creates Delaunay Triangulations from collections of points and extract the resulting triangulation edges or triangles as geometries.
Inherited Members
Namespace: NetTopologySuite.Triangulate
Assembly: NetTopologySuite.dll
Syntax
public class DelaunayTriangulationBuilder
Properties
| Edit this page View SourceTolerance
Sets the snapping tolerance which will be used to improved the robustness of the triangulation computation. A tolerance of 0.0 specifies that no snapping will take place.
Declaration
public double Tolerance { set; }
Property Value
Type | Description |
---|---|
double |
Methods
| Edit this page View SourceEnvelope(ICollection<Coordinate>)
Computes the Envelope(ICollection<Coordinate>) of a collection of Coordinates.
Declaration
public static Envelope Envelope(ICollection<Coordinate> coords)
Parameters
Type | Name | Description |
---|---|---|
ICollection<Coordinate> | coords | a List of Coordinates |
Returns
Type | Description |
---|---|
Envelope | the envelope of the set of coordinates |
ExtractUniqueCoordinates(Geometry)
Extracts the unique Coordinates from the given Geometry.
Declaration
public static CoordinateList ExtractUniqueCoordinates(Geometry geom)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geom | the geometry to extract from |
Returns
Type | Description |
---|---|
CoordinateList | a List of the unique Coordinates |
GetEdges(GeometryFactory)
Gets the edges of the computed triangulation as a MultiLineString.
Declaration
public MultiLineString GetEdges(GeometryFactory geomFact)
Parameters
Type | Name | Description |
---|---|---|
GeometryFactory | geomFact | the geometry factory to use to create the output |
Returns
Type | Description |
---|---|
MultiLineString | the edges of the triangulation |
GetSubdivision()
Gets the QuadEdgeSubdivision which models the computed triangulation.
Declaration
public QuadEdgeSubdivision GetSubdivision()
Returns
Type | Description |
---|---|
QuadEdgeSubdivision | the subdivision containing the triangulation |
GetTriangles(GeometryFactory)
Gets the faces of the computed triangulation as a GeometryCollection of NetTopologySuite.Triangulate.Polygon.
Declaration
public GeometryCollection GetTriangles(GeometryFactory geomFact)
Parameters
Type | Name | Description |
---|---|---|
GeometryFactory | geomFact | the geometry factory to use to create the output |
Returns
Type | Description |
---|---|
GeometryCollection | the faces of the triangulation |
SetSites(Geometry)
Sets the sites (vertices) which will be triangulated. All vertices of the given geometry will be used as sites.
Declaration
public void SetSites(Geometry geom)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geom | the geometry from which the sites will be extracted. |
SetSites(ICollection<Coordinate>)
Sets the sites (vertices) which will be triangulated from a collection of Coordinates.
Declaration
public void SetSites(ICollection<Coordinate> coords)
Parameters
Type | Name | Description |
---|---|---|
ICollection<Coordinate> | coords | a collection of Coordinates. |
ToVertices(ICollection<Coordinate>)
Converts all Coordinates in a collection to Vertexes.
Declaration
public static IList<Vertex> ToVertices(ICollection<Coordinate> coords)
Parameters
Type | Name | Description |
---|---|---|
ICollection<Coordinate> | coords | the coordinates to convert |
Returns
Type | Description |
---|---|
IList<Vertex> | a List of Vertex objects |
Unique(Coordinate[])
Declaration
public static CoordinateList Unique(Coordinate[] coords)
Parameters
Type | Name | Description |
---|---|---|
Coordinate[] | coords |
Returns
Type | Description |
---|---|
CoordinateList |