public class DelaunayTriangulationBuilder
extends java.lang.Object
Constructor | Description |
---|---|
DelaunayTriangulationBuilder() |
Creates a new triangulation builder.
|
Modifier and Type | Method | Description |
---|---|---|
static Envelope |
envelope(java.util.Collection coords) |
Computes the
Envelope of a collection of Coordinate s. |
static CoordinateList |
extractUniqueCoordinates(Geometry geom) |
Extracts the unique
Coordinate s 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 (vertices) which will be triangulated
from a collection of
Coordinate s. |
void |
setSites(Geometry geom) |
Sets the sites (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
Coordinate s in a collection to Vertex es. |
static CoordinateList |
unique(Coordinate[] coords) |
public DelaunayTriangulationBuilder()
public static CoordinateList extractUniqueCoordinates(Geometry geom)
Coordinate
s from the given Geometry
.geom
- the geometry to extract frompublic static CoordinateList unique(Coordinate[] coords)
public static java.util.List toVertices(java.util.Collection coords)
Coordinate
s in a collection to Vertex
es.coords
- the coordinates to convertpublic static Envelope envelope(java.util.Collection coords)
Envelope
of a collection of Coordinate
s.coords
- a List of Coordinatespublic void setSites(Geometry geom)
geom
- the geometry from which the sites will be extracted.public void setSites(java.util.Collection coords)
Coordinate
s.coords
- 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 outputpublic Geometry getTriangles(GeometryFactory geomFact)
GeometryCollection
of Polygon
.geomFact
- the geometry factory to use to create the outputCopyright © 2018. All rights reserved.