21 #include <geos/triangulate/quadedge/QuadEdgeSubdivision.h> 22 #include <geos/geom/Envelope.h> 25 #include <unordered_map> 30 class CoordinateSequence;
31 class GeometryCollection;
32 class GeometryFactory;
34 namespace triangulate {
81 void setOrdered(
bool isOrdered);
103 void setTolerance(
double tolerance);
110 std::unique_ptr<quadedge::QuadEdgeSubdivision> getSubdivision();
130 void reorderCellsToInput(std::vector<std::unique_ptr<geom::Geometry>> & polys)
const;
133 using CoordinateCellMap = std::unordered_map<geom::CoordinateXY, std::unique_ptr<geom::Geometry>, geom::Coordinate::HashCode>;
135 std::unique_ptr<geom::CoordinateSequence> siteCoords;
137 std::unique_ptr<quadedge::QuadEdgeSubdivision> subdiv;
146 std::size_t getNumInputPoints()
const;
148 static std::unique_ptr<geom::GeometryCollection>
149 clipGeometryCollection(std::vector<std::unique_ptr<geom::Geometry>> & geoms,
const geom::Envelope& clipEnv);
152 static void addCellsForCoordinates(CoordinateCellMap& cellMap,
const geom::Geometry& g, std::vector<std::unique_ptr<geom::Geometry>> & polys);
153 static void addCellsForCoordinates(CoordinateCellMap& cellMap,
const geom::CoordinateSequence& g, std::vector<std::unique_ptr<geom::Geometry>> & polys);
An Envelope defines a rectangulare region of the 2D coordinate plane.
Definition: Envelope.h:58
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:186
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:65
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25
A utility class which creates Voronoi Diagrams from collections of points.
Definition: VoronoiDiagramBuilder.h:46
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:56