17#include <geos/geom/Triangle.h>
18#include <geos/triangulate/tri/Tri.h>
19#include <geos/triangulate/tri/TriList.h>
20#include <geos/triangulate/quadedge/TriangleVisitor.h>
21#include <geos/algorithm/hull/HullTri.h>
32namespace triangulate {
55typedef std::priority_queue<HullTri*, std::vector<HullTri*>, HullTri::HullTriCompare> HullTriQueue;
96 , maxEdgeLengthRatio(-1.0)
97 , isHolesAllowed(
false)
124 const Geometry* geom,
double maxLength);
126 static std::unique_ptr<Geometry> concaveHullByLength(
127 const Geometry* geom,
double maxLength,
bool isHolesAllowed);
141 const Geometry* geom,
double lengthRatio);
157 const Geometry* geom,
double lengthRatio,
bool isHolesAllowed);
208 double maxEdgeLength;
209 double maxEdgeLengthRatio;
213 static double computeTargetEdgeLength(
215 double edgeLengthFactor);
229 void addBorderTri(HullTri* tri, HullTriQueue& queue);
230 bool isBelowLengthThreshold(
const HullTri* tri)
const;
233 static std::vector<HullTri*> findCandidateHoles(
238 bool isRemovableBorder(
const HullTri* tri)
const;
239 bool isRemovableHole(
const HullTri* tri)
const;
241 std::unique_ptr<Geometry> toGeometry(
Definition: ConcaveHull.h:89
static std::unique_ptr< Geometry > concaveHullByLengthRatio(const Geometry *geom, double lengthRatio, bool isHolesAllowed)
static std::unique_ptr< Geometry > concaveHullByLengthRatio(const Geometry *geom, double lengthRatio)
void setHolesAllowed(bool holesAllowed)
static double uniformEdgeLength(const Geometry *geom)
static std::unique_ptr< Geometry > concaveHullByLength(const Geometry *geom, double maxLength)
void setMaximumEdgeLength(double edgeLength)
void setMaximumEdgeLengthRatio(double edgeLengthRatio)
std::unique_ptr< Geometry > getHull()
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.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
const GeometryFactory * getFactory() const
Gets the factory which contains the context in which this geometry was created.
Definition: Geometry.h:216
Represents a planar triangle, and provides methods for calculating various properties of triangles.
Definition: Triangle.h:28
A class that contains the QuadEdges representing a planar subdivision that models a triangulation.
Definition: QuadEdgeSubdivision.h:83
A class that represents the edge data structure which implements the quadedge algebra.
Definition: QuadEdge.h:53
An interface for algorithms which process the triangles in a QuadEdgeSubdivision.
Definition: TriangleVisitor.h:33
Basic namespace for all GEOS functionalities.
Definition: geos.h:39