Alpha complex data structure.
More...
|
typedef CGAL::Delaunay_triangulation< Kernel, TDS > | Delaunay_triangulation |
| A Delaunay triangulation of a set of points in \( \mathbb{R}^D\).
|
|
typedef Kernel::Point_d | Point_d |
| A point in Euclidean space.
|
|
typedef Kernel | Geom_traits |
| Geometric traits class that provides the geometric types and predicates needed by Delaunay triangulations.
|
|
template<class Kernel = CGAL::Epeck_d<CGAL::Dynamic_dimension_tag>>
class Gudhi::alpha_complex::Alpha_complex< Kernel >
Alpha complex data structure.
The data structure is constructing a CGAL Delaunay triangulation (for more informations on CGAL Delaunay triangulation, please refer to the corresponding chapter in page http://doc.cgal.org/latest/Triangulation/) from a range of points or from an OFF file (cf. Points_off_reader).
Please refer to Alpha complex for examples.
The complex is a template class requiring an CGAL::Epeck_d, or an CGAL::Epick_d dD Geometry Kernel [39] from CGAL as template, default value is CGAL::Epeck_d < CGAL::Dynamic_dimension_tag >
- Examples:
- Alpha_complex/Alpha_complex_from_off.cpp, Alpha_complex/Alpha_complex_from_points.cpp, Alpha_complex/alpha_complex_persistence.cpp, Bottleneck_distance/alpha_rips_persistence_bottleneck_distance.cpp, and Persistent_cohomology/custom_persistence_sort.cpp.
◆ Alpha_complex() [1/2]
template<class Kernel = CGAL::Epeck_d<CGAL::Dynamic_dimension_tag>>
Alpha_complex constructor from an OFF file name.
Uses the Points_off_reader to construct the Delaunay triangulation required to initialize the Alpha_complex.
Duplicate points are inserted once in the Alpha_complex. This is the reason why the vertices may be not contiguous.
- Parameters
-
[in] | off_file_name | OFF file [path and] name. |
◆ Alpha_complex() [2/2]
template<class Kernel = CGAL::Epeck_d<CGAL::Dynamic_dimension_tag>>
template<typename InputPointRange >
Alpha_complex constructor from a list of points.
Duplicate points are inserted once in the Alpha_complex. This is the reason why the vertices may be not contiguous.
- Parameters
-
[in] | points | Range of points to triangulate. Points must be in Kernel::Point_d |
The type InputPointRange must be a range for which std::begin and std::end return input iterators on a Kernel::Point_d.
◆ create_complex()
template<class Kernel = CGAL::Epeck_d<CGAL::Dynamic_dimension_tag>>
template<typename SimplicialComplexForAlpha , typename Filtration_value = typename SimplicialComplexForAlpha::Filtration_value>
Inserts all Delaunay triangulation into the simplicial complex. It also computes the filtration values accordingly to the Create complex algorithm if default_filtration_value is not set.
- Template Parameters
-
- Parameters
-
[in] | complex | SimplicialComplexForAlpha to be created. |
[in] | max_alpha_square | maximum for alpha square value. Default value is + \(\infty\), and there is very little point using anything else since it does not save time. Useless if default_filtration_value is set to true . |
[in] | exact | Exact filtration values computation. Not exact if Kernel is not CGAL::Epeck_d. |
[in] | default_filtration_value | Set this value to true if filtration values are not needed to be computed (will be set to NaN ). Default value is false (which means compute the filtration values). |
- Returns
- true if creation succeeds, false otherwise.
- Precondition
- Delaunay triangulation must be already constructed with dimension strictly greater than 0.
-
The simplicial complex must be empty (no vertices)
Initialization can be launched once.
◆ get_point()
template<class Kernel = CGAL::Epeck_d<CGAL::Dynamic_dimension_tag>>
get_point returns the point corresponding to the vertex given as parameter.
- Parameters
-
[in] | vertex | Vertex handle of the point to retrieve. |
- Returns
- The point found.
- Exceptions
-
std::out_of_range | In case vertex is not found (cf. std::vector::at). |
The documentation for this class was generated from the following file: