21#include <geos/triangulate/quadedge/QuadEdgeSubdivision.h>
22#include <geos/geom/Envelope.h>
29class CoordinateSequence;
30class GeometryCollection;
33namespace triangulate {
120 std::unique_ptr<geom::CoordinateSequence> siteCoords;
122 std::unique_ptr<quadedge::QuadEdgeSubdivision> subdiv;
128 static std::unique_ptr<geom::GeometryCollection>
129 clipGeometryCollection(std::vector<std::unique_ptr<geom::Geometry>> & geoms,
const geom::Envelope& clipEnv);
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:44
An Envelope defines a rectangulare region of the 2D coordinate plane.
Definition: Envelope.h:58
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:66
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:186
A utility class which creates Voronoi Diagrams from collections of points.
Definition: VoronoiDiagramBuilder.h:45
void setClipEnvelope(const geom::Envelope *clipEnv)
Sets the envelope to clip the diagram to.
void setSites(const geom::CoordinateSequence &coords)
Sets the sites (point or vertices) which will be diagrammed from a collection of geom::Coordinates.
void setSites(const geom::Geometry &geom)
Sets the sites (point or vertices) which will be diagrammed. All vertices of the given geometry will ...
std::unique_ptr< quadedge::QuadEdgeSubdivision > getSubdivision()
Gets the quadedge::QuadEdgeSubdivision which models the computed diagram.
void setTolerance(double tolerance)
Sets the snapping tolerance which will be used to improved the robustness of the triangulation comput...
std::unique_ptr< geom::Geometry > getDiagramEdges(const geom::GeometryFactory &geomFact)
Gets the faces of the computed diagram as a geom::GeometryCollection of geom::LineStrings,...
VoronoiDiagramBuilder()
Creates a new Voronoi diagram builder.
std::unique_ptr< geom::GeometryCollection > getDiagram(const geom::GeometryFactory &geomFact)
Gets the faces of the computed diagram as a geom::GeometryCollection of geom::Polygons,...
Basic namespace for all GEOS functionalities.
Definition: geos.h:39