IncrementalDelaunayTriangulator.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2012 Excensus LLC.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
**********************************************************************
*
* Last port: triangulate/IncrementalDelaunayTriangulator.java r524
*
**********************************************************************/
#pragma once
#include <list>
#include <geos/triangulate/quadedge/Vertex.h>
namespace geos {
namespace triangulate { //geos.triangulate
namespace quadedge {
class QuadEdge;
class QuadEdgeSubdivision;
}
class GEOS_DLL IncrementalDelaunayTriangulator {
private:
quadedge::QuadEdgeSubdivision* subdiv;
bool isUsingTolerance;
bool m_isForceConvex;
public:
IncrementalDelaunayTriangulator(quadedge::QuadEdgeSubdivision* subdiv);
typedef std::vector<quadedge::Vertex> VertexList;
void forceConvex(bool isForceConvex);
void insertSites(const VertexList& vertices);
quadedge::QuadEdge& insertSite(const quadedge::Vertex& v);
private:
bool isConcaveBoundary(const quadedge::QuadEdge& e) const;
bool isConcaveAtOrigin(const quadedge::QuadEdge& e) const;
bool isBetweenFrameAndInserted(const quadedge::QuadEdge& e, const quadedge::Vertex& vInsert) const;
};
} //namespace geos.triangulate
} //namespace goes
geos::triangulate::IncrementalDelaunayTriangulator::IncrementalDelaunayTriangulator
IncrementalDelaunayTriangulator(quadedge::QuadEdgeSubdivision *subdiv)
geos::triangulate::IncrementalDelaunayTriangulator::forceConvex
void forceConvex(bool isForceConvex)
geos::triangulate::IncrementalDelaunayTriangulator::insertSites
void insertSites(const VertexList &vertices)
geos::triangulate::IncrementalDelaunayTriangulator::insertSite
quadedge::QuadEdge & insertSite(const quadedge::Vertex &v)
geos::triangulate::quadedge::QuadEdgeSubdivision
A class that contains the QuadEdges representing a planar subdivision that models a triangulation.
Definition QuadEdgeSubdivision.h:78
geos::triangulate::quadedge::QuadEdge
A class that represents the edge data structure which implements the quadedge algebra.
Definition QuadEdge.h:53
geos::triangulate::quadedge::Vertex
Models a site (node) in a QuadEdgeSubdivision.
Definition Vertex.h:60
geos::triangulate::quadedge
Classes to implement a topological subdivision of quadeges, to support creating triangulations and Vo...
Definition ConcaveHull.h:33
geos::triangulate
Classes to compute Delaunay triangulations.
Definition ConcaveHull.h:32
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38