public class VoronoiDiagramBuilder extends Object
GeometryCollection of Polygons,
clipped to the larger of a supplied envelope or to an envelope determined
by the input sites.| Constructor and Description |
|---|
VoronoiDiagramBuilder()
Creates a new Voronoi diagram builder.
|
| Modifier and Type | Method and Description |
|---|---|
Geometry |
getDiagram(GeometryFactory geomFact)
Gets the faces of the computed diagram as a
GeometryCollection
of Polygons, 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(Collection coords)
Sets the sites (point or vertices) which will be diagrammed
from a collection of
Coordinates. |
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.
|
public VoronoiDiagramBuilder()
public void setSites(Geometry geom)
geom - the geometry from which the sites will be extracted.public void setSites(Collection coords)
Coordinates.coords - 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 Polygons, clipped as specified.geomFact - the geometry factory to use to create the outputCopyright © 2015. All rights reserved.