public class DelaunayTriangulationBuilder extends Object
| Constructor and Description |
|---|
DelaunayTriangulationBuilder()
Creates a new triangulation builder.
|
| Modifier and Type | Method and Description |
|---|---|
static BoundingBoxDoubleGf |
envelope(Collection<Point> coords)
Computes the
BoundingBoxDoubleGf of a collection of Coordinatess. |
static CoordinateList |
extractUniqueCoordinates(Geometry geom)
Extracts the unique
Coordinatess 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(Collection coords)
Sets the sites (vertices) which will be triangulated
from a collection of
Coordinatess. |
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 List |
toVertices(Collection coords)
Converts all
Coordinatess in a collection to Vertexes. |
static CoordinateList |
unique(Point[] coords) |
public DelaunayTriangulationBuilder()
public static BoundingBoxDoubleGf envelope(Collection<Point> coords)
BoundingBoxDoubleGf of a collection of Coordinatess.coords - a List of Coordinatespublic static CoordinateList extractUniqueCoordinates(Geometry geom)
Coordinatess from the given Geometry.geom - the geometry to extract frompublic static List toVertices(Collection coords)
Coordinatess in a collection to Vertexes.coords - the coordinates to convertpublic static CoordinateList unique(Point[] coords)
public Geometry getEdges(GeometryFactory geomFact)
MultiLineString.geomFact - the geometry factory to use to create the outputpublic QuadEdgeSubdivision getSubdivision()
QuadEdgeSubdivision which models the computed triangulation.public Geometry getTriangles(GeometryFactory geomFact)
GeometryCollection
of Polygon.geomFact - the geometry factory to use to create the outputpublic void setSites(Collection coords)
Coordinatess.coords - a collection of Coordinates.public void setSites(Geometry geom)
geom - the geometry from which the sites will be extracted.public void setTolerance(double tolerance)
tolerance - the tolerance distance to useCopyright © 2015 Revolution Systems Inc.. All rights reserved.