|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Alpha shape of a point set. More...
#include <geom_algorithms.H>
Classes | |
| struct | Result |
| Result of an alpha-shape computation. More... | |
Public Member Functions | |
| Result | operator() (const DynList< Point > &points, const Geom_Number &alpha_squared) const |
| Compute the α-shape. | |
Alpha shape of a point set.
The α-shape is a generalization of the convex hull. For α = ∞ it equals the convex hull; as α decreases, the shape "shrinks" around the points, revealing concavities.
O(n log n) for the Delaunay step + O(T) to filter, where T = number of Delaunay triangles.
Definition at line 10744 of file geom_algorithms.H.
|
inline |
Compute the α-shape.
| points | Input point set. |
| alpha_squared | The α² threshold. A Delaunay triangle is kept iff its circumradius² ≤ alpha_squared. |
| domain_error | if fewer than 3 points. |
Key for identifying an undirected edge by its vertex indices.
< Vertex indices (sorted u < v).
Exact equality check.
Definition at line 10768 of file geom_algorithms.H.
References Aleph::and, Aleph::area_of_parallelogram(), Aleph::Point::distance_squared_to(), Aleph::divide_and_conquer_partition_dp(), k, operator<(), operator==(), Aleph::quicksort_op(), Aleph::Array< T >::reserve(), and Aleph::AlphaShape::Result::sites.