Ocean
|
This class implements Delaunay triangulation functions. More...
Data Structures | |
class | CircumCricleIndexTriangle |
This class extends the IndexTriangle class by an additional circumcircle as the Delaunay triangulation is based on this information. More... | |
class | ComparePointsX |
This class implements the lesser operator for indices of points. More... | |
class | IndexEdge |
This class stores the sorted indices of an edge. More... | |
class | IndexTriangle |
This class holds three indices of points representing a triangle. More... | |
Public Types | |
typedef std::vector< IndexTriangle > | IndexTriangles |
Definition of a vector holding index triangles. More... | |
Static Public Member Functions | |
static IndexTriangles | triangulation (const Vectors2 &points) |
Determines the delaunay triangulation for a given 2D point set. More... | |
static bool | checkTriangulation (const IndexTriangles &triangles, const Vectors2 &points, const Scalar epsilon=Numeric::eps()) |
Checks a Delaunay triangulation for integrity: no points are allowed within the circumcircle of a triangle. More... | |
Protected Types | |
typedef std::vector< CircumCricleIndexTriangle > | CircumCricleIndexTriangles |
Definition of a vector holding extended index triangles. More... | |
typedef std::list< CircumCricleIndexTriangle > | CircumCricleIndexTriangleList |
Definition of a list holding extended index triangles. More... | |
typedef std::map< IndexEdge, unsigned int > | EdgeMap |
Definition of a map mapping edge pairs to a counter. More... | |
Static Protected Member Functions | |
static bool | checkTriangulation (const CircumCricleIndexTriangles &triangles, const Vectors2 &points, const Scalar epsilon=Numeric::eps()) |
Checks a Delaunay triangulation for integrity: no points are allowed within the circumcircle of a triangle. More... | |
This class implements Delaunay triangulation functions.
|
protected |
Definition of a list holding extended index triangles.
|
protected |
Definition of a vector holding extended index triangles.
|
protected |
Definition of a map mapping edge pairs to a counter.
typedef std::vector<IndexTriangle> Ocean::Geometry::Delaunay::IndexTriangles |
Definition of a vector holding index triangles.
|
staticprotected |
Checks a Delaunay triangulation for integrity: no points are allowed within the circumcircle of a triangle.
triangles | Delaunay triangulation |
points | Vector with points coordinates |
epsilon | The epsilon value used for a slightly more generous comparison, with range [0, infinity) |
|
static |
Checks a Delaunay triangulation for integrity: no points are allowed within the circumcircle of a triangle.
triangles | Delaunay triangulation |
points | Vector with points coordinates |
epsilon | The epsilon value used for a slightly more generous comparison, with range [0, infinity) |
|
static |
Determines the delaunay triangulation for a given 2D point set.
The implementation is based on the Bowyer-Watson algorithm.
points | 2D point set to be triangulated, at least three |