public class DelaunayTriangulationBuilder extends Object
| Constructor and Description |
|---|
DelaunayTriangulationBuilder()
Creates a new triangulation builder.
|
| Modifier and Type | Method and Description |
|---|---|
static Envelope |
envelope(Collection
Computes the
Envelope of a collection of
Coordinates.
|
static CoordinateList |
extractUniqueCoordinates(Geometry
Extracts the unique
Coordinates from the given
Geometry.
|
Geometry |
getEdges(GeometryFactory
Gets the edges of the computed triangulation as a
MultiLineString.
|
QuadEdgeSubdivision |
getSubdivision()
Gets the
QuadEdgeSubdivision which models the computed triangulation.
|
Geometry |
getTriangles(GeometryFactory
Gets the faces of the computed triangulation as a
GeometryCollection of
Polygon.
|
void |
setSites(Collection
Sets the sites (vertices) which will be triangulated from a collection of
Coordinates.
|
void |
setSites(Geometry
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 List |
toVertices(Collection
Converts all
Coordinates in a collection to
Vertexes.
|
static CoordinateList |
unique(Coordinate
|
public DelaunayTriangulationBuilder()
public static CoordinateListextractUniqueCoordinates(Geometry geom)
Coordinates from the given
Geometry.
geom - the geometry to extract from
public static CoordinateListunique(Coordinate [] coords)
public static ListtoVertices(Collection coords)
Coordinates in a collection to
Vertexes.
coords - the coordinates to convert
public static Envelopeenvelope(Collection coords)
Envelope of a collection of
Coordinates.
coords - a List of Coordinates
public void setSites(Geometrygeom)
geom - the geometry from which the sites will be extracted.
public void setSites(Collectioncoords)
Coordinates.
coords - a collection of Coordinates.
public void setTolerance(double tolerance)
tolerance - the tolerance distance to use
public QuadEdgeSubdivisiongetSubdivision()
QuadEdgeSubdivision which models the computed triangulation.
public GeometrygetEdges(GeometryFactory geomFact)
MultiLineString.
geomFact - the geometry factory to use to create the output
public GeometrygetTriangles(GeometryFactory geomFact)
GeometryCollection of
Polygon.
geomFact - the geometry factory to use to create the output