A utility class which creates Voronoi Diagrams from collections of points. The diagram is returned as a
GeometryCollection of
Polygons representing the faces of the Voronoi diagram. The faces are clipped to the larger of:
The
userData attribute of each face
Polygon is set to the
Coordinate of the corresponding input site. This allows using a
Map to link faces to data associated with sites.
Sets the envelope to clip the diagram to. The diagram will be clipped to the larger of this envelope or an envelope surrounding the sites.
Parameters:
clipEnv - clipEnv the clip envelope.
public void setTolerance(double tolerance)
Sets the snapping tolerance which will be used to improved the robustness of the triangulation computation. A tolerance of 0.0 specifies that no snapping will take place.
Parameters:
tolerance - tolerance the tolerance distance to use
The userData attribute of each face Polygon is set to the Coordinate of the corresponding input site. This allows using a Map to link faces to data associated with sites.
Parameters:
geomFact - geomFact the geometry factory to use to create the output
Returns:
a
GeometryCollection containing the face
Polygons of the diagram