Package org.locationtech.jts.triangulate
Class IncrementalDelaunayTriangulator
- java.lang.Object
-
- org.locationtech.jts.triangulate.IncrementalDelaunayTriangulator
-
public class IncrementalDelaunayTriangulator extends java.lang.ObjectComputes a Delaunay Triangulation of a set ofVertexes, using an incremental insertion algorithm.- Version:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description private booleanisUsingToleranceprivate QuadEdgeSubdivisionsubdiv
-
Constructor Summary
Constructors Constructor Description IncrementalDelaunayTriangulator(QuadEdgeSubdivision subdiv)Creates a new triangulator using the givenQuadEdgeSubdivision.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QuadEdgeinsertSite(Vertex v)Inserts a new point into a subdivision representing a Delaunay triangulation, and fixes the affected edges so that the result is still a Delaunay triangulation.voidinsertSites(java.util.Collection vertices)Inserts all sites in a collection.
-
-
-
Field Detail
-
subdiv
private QuadEdgeSubdivision subdiv
-
isUsingTolerance
private boolean isUsingTolerance
-
-
Constructor Detail
-
IncrementalDelaunayTriangulator
public IncrementalDelaunayTriangulator(QuadEdgeSubdivision subdiv)
Creates a new triangulator using the givenQuadEdgeSubdivision. The triangulator uses the tolerance of the supplied subdivision.- Parameters:
subdiv- a subdivision in which to build the TIN
-
-
Method Detail
-
insertSites
public void insertSites(java.util.Collection vertices)
Inserts all sites in a collection. The inserted vertices MUST be unique up to the provided tolerance value. (i.e. no two vertices should be closer than the provided tolerance value). They do not have to be rounded to the tolerance grid, however.- Parameters:
vertices- a Collection of Vertex- Throws:
LocateFailureException- if the location algorithm fails to converge in a reasonable number of iterations
-
-