|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Computational geometry algorithms. More...
#include <polygon.H>#include <htlist.H>#include <tpl_dynSetTree.H>#include <tpl_sort_utils.H>#include <ah-errors.H>Go to the source code of this file.
Classes | |
| class | Aleph::CuttingEarsTriangulation |
| Polygon triangulation using the ear-cutting algorithm. More... | |
| class | Aleph::BruteForceConvexHull |
| Brute force convex hull algorithm. More... | |
| struct | Aleph::BruteForceConvexHull::CmpSegment |
| class | Aleph::GiftWrappingConvexHull |
| Gift wrapping (Jarvis march) convex hull algorithm. More... | |
| class | Aleph::QuickHull |
| QuickHull convex hull algorithm. More... | |
Namespaces | |
| namespace | Aleph |
| Main namespace for Aleph-w library functions. | |
Computational geometry algorithms.
This file provides fundamental algorithms for computational geometry:
Three algorithms to compute the convex hull of a point set:
| Algorithm | Complexity | Best For |
|---|---|---|
| BruteForceConvexHull | O(n³) | Small sets, educational |
| GiftWrappingConvexHull | O(nh) | Few hull points (h small) |
| QuickHull | O(n log n) avg, O(n²) worst | General use |
where n = number of points, h = number of hull points.
Requires polygon.H for geometric primitives:
Definition in file geom_algorithms.H.