|
JTS Topology Suite version 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vividsolutions.jts.triangulate.VoronoiDiagramBuilder
public class VoronoiDiagramBuilder
A utility class which creates Voronoi Diagrams
from collections of points.
The diagram is returned as a GeometryCollection
of Polygon
s,
clipped to the larger of a supplied envelope or to an envelope determined
by the input sites.
Constructor Summary | |
---|---|
VoronoiDiagramBuilder()
Creates a new Voronoi diagram builder. |
Method Summary | |
---|---|
Geometry |
getDiagram(GeometryFactory geomFact)
Gets the faces of the computed diagram as a GeometryCollection
of Polygon s, clipped as specified. |
QuadEdgeSubdivision |
getSubdivision()
Gets the QuadEdgeSubdivision which models the computed diagram. |
void |
setClipEnvelope(Envelope clipEnv)
Sets the envelope to clip the diagram to. |
void |
setSites(java.util.Collection coords)
Sets the sites (point or vertices) which will be diagrammed from a collection of Coordinate s. |
void |
setSites(Geometry geom)
Sets the sites (point or vertices) which will be diagrammed. |
void |
setTolerance(double tolerance)
Sets the snapping tolerance which will be used to improved the robustness of the triangulation computation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VoronoiDiagramBuilder()
Method Detail |
---|
public void setSites(Geometry geom)
geom
- the geometry from which the sites will be extracted.public void setSites(java.util.Collection coords)
Coordinate
s.
geom
- a collection of Coordinates.public void setClipEnvelope(Envelope clipEnv)
clipEnv
- the clip envelope.public void setTolerance(double tolerance)
tolerance
- the tolerance distance to usepublic QuadEdgeSubdivision getSubdivision()
QuadEdgeSubdivision
which models the computed diagram.
public Geometry getDiagram(GeometryFactory geomFact)
GeometryCollection
of Polygon
s, clipped as specified.
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 |