|
JTS Topology Suite version 1.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.vividsolutions.jts.triangulate.DelaunayTriangulationBuilder
public class DelaunayTriangulationBuilder
A utility class which creates Delaunay Trianglulations from collections of points and extract the resulting triangulation edges or triangles as geometries.
| Constructor Summary | |
|---|---|
DelaunayTriangulationBuilder()
Creates a new triangulation builder. |
|
| Method Summary | |
|---|---|
static Envelope |
envelope(java.util.Collection coords)
Computes the Envelope of a collection of Coordinates. |
static CoordinateList |
extractUniqueCoordinates(Geometry geom)
Extracts the unique Coordinates from the given Geometry. |
Geometry |
getEdges(GeometryFactory geomFact)
Gets the edges of the computed triangulation as a MultiLineString. |
QuadEdgeSubdivision |
getSubdivision()
Gets the QuadEdgeSubdivision which models the computed triangulation. |
Geometry |
getTriangles(GeometryFactory geomFact)
Gets the faces of the computed triangulation as a GeometryCollection
of Polygon. |
void |
setSites(java.util.Collection coords)
Sets the sites (point or vertices) which will be triangulated from a collection of Coordinates. |
void |
setSites(Geometry geom)
Sets the sites (point or vertices) which will be triangulated. |
void |
setTolerance(double tolerance)
Sets the snapping tolerance which will be used to improved the robustness of the triangulation computation. |
static java.util.List |
toVertices(java.util.Collection coords)
Converts all Coordinates in a collection to Vertexes. |
static CoordinateList |
unique(Coordinate[] coords)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DelaunayTriangulationBuilder()
| Method Detail |
|---|
public static CoordinateList extractUniqueCoordinates(Geometry geom)
Coordinates from the given Geometry.
geom - the geometry to extract from
public static CoordinateList unique(Coordinate[] coords)
public static java.util.List toVertices(java.util.Collection coords)
Coordinates in a collection to Vertexes.
coords - the coordinates to convert
public static Envelope envelope(java.util.Collection coords)
Envelope of a collection of Coordinates.
coords - a List of Coordinates
public void setSites(Geometry geom)
geom - the geometry from which the sites will be extracted.public void setSites(java.util.Collection coords)
Coordinates.
geom - a collection of Coordinates.public void setTolerance(double tolerance)
tolerance - the tolerance distance to usepublic QuadEdgeSubdivision getSubdivision()
QuadEdgeSubdivision which models the computed triangulation.
public Geometry getEdges(GeometryFactory geomFact)
MultiLineString.
geomFact - the geometry factory to use to create the output
public Geometry getTriangles(GeometryFactory geomFact)
GeometryCollection
of Polygon.
geomFact - the geometry factory to use to create the output
|
JTS Topology Suite version 1.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||