Class ConformingDelaunayTriangulationBuilder
A utility class which creates Conforming Delaunay Triangulations from collections of points and linear constraints, and extract the resulting triangulation edges or triangles as geometries.
Inherited Members
Namespace: NetTopologySuite.Triangulate
Assembly: NetTopologySuite.dll
Syntax
public class ConformingDelaunayTriangulationBuilder
Properties
| Edit this page View SourceConstraints
Sets the linear constraints to be conformed to. All linear components in the input will be used as constraints. The constraint vertices do not have to be disjoint from the site vertices. The constraints must not contain duplicate segments (up to orientation).
Declaration
public Geometry Constraints { set; }
Property Value
Type | Description |
---|---|
Geometry |
Tolerance
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 { get; set; }
Property Value
Type | Description |
---|---|
double |
Methods
| Edit this page View SourceGetEdges(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 (point or vertices) which will be triangulated. All vertices of the given geometry will be used as sites. The site vertices do not have to contain the constraint vertices as well; any site vertices which are identical to a constraint vertex will be removed from the site vertex set.
Declaration
public void SetSites(Geometry sites)
Parameters
Type | Name | Description |
---|---|---|
Geometry | sites |
Remarks
The geometry from which the sites will be extracted.