Tangential complex data structure. More...
Classes | |
struct | Fix_inconsistencies_info |
Type returned by Tangential_complex::fix_inconsistencies_using_perturbation . More... | |
struct | Num_inconsistencies |
Type returned by Tangential_complex::number_of_inconsistent_simplices . More... | |
Public Member Functions | |
template<typename Point_range > | |
Tangential_complex (Point_range points, int intrinsic_dimension, const K &k=K()) | |
Constructor from a range of points. Points are copied into the instance, and a search data structure is initialized. Note the complex is not computed: compute_tangential_complex must be called after the creation of the object. More... | |
~Tangential_complex () | |
Destructor. | |
int | intrinsic_dimension () const |
Returns the intrinsic dimension of the manifold. | |
int | ambient_dimension () const |
Returns the ambient dimension. | |
Point | get_point (std::size_t vertex) const |
Returns the point corresponding to the vertex given as parameter. More... | |
Point | get_perturbed_point (std::size_t vertex) const |
Returns the perturbed position of the point corresponding to the vertex given as parameter. More... | |
std::size_t | number_of_vertices () const |
Returns the number of vertices. | |
void | compute_tangential_complex () |
Computes the tangential complex. More... | |
Fix_inconsistencies_info | fix_inconsistencies_using_perturbation (double max_perturb, double time_limit=-1.) |
Attempts to fix inconsistencies by perturbing the point positions. More... | |
Num_inconsistencies | number_of_inconsistent_simplices (bool verbose=false) const |
template<typename Simplex_tree_ > | |
int | create_complex (Simplex_tree_ &tree, bool export_inconsistent_simplices=true) const |
Exports the complex into a Simplex_tree. More... | |
void | set_max_squared_edge_length (FT max_squared_edge_length) |
Sets the maximal possible squared edge length for the edges in the triangulations. More... | |
Tangential complex data structure.
The class Tangential_complex represents a tangential complex. After the computation of the complex, an optional post-processing called perturbation can be run to attempt to remove inconsistencies.
Kernel_ | requires a CGAL::Epick_d class, which can be static if you know the ambiant dimension at compile-time, or dynamic if you don't. |
DimensionTag | can be either Dimension_tag<d> if you know the intrinsic dimension at compile-time, or CGAL::Dynamic_dimension_tag if you don't. |
Concurrency_tag | enables sequential versus parallel computation. Possible values are CGAL::Parallel_tag (the default) and CGAL::Sequential_tag . |
Triangulation_ | is the type used for storing the local regular triangulations. We highly recommend to use the default value (CGAL::Regular_triangulation ). |
|
inline |
Constructor from a range of points. Points are copied into the instance, and a search data structure is initialized. Note the complex is not computed: compute_tangential_complex
must be called after the creation of the object.
[in] | points | Range of points (Point_range::value_type must be the same as Kernel_::Point_d ). |
[in] | intrinsic_dimension | Intrinsic dimension of the manifold. |
[in] | k | Kernel instance. |
|
inline |
Computes the tangential complex.
std::invalid_argument | In debug mode, if the computed star dimension is too low. Try to set a bigger maximal edge length value with Tangential_complex::set_max_squared_edge_length if this happens. |
|
inline |
Exports the complex into a Simplex_tree.
Simplex_tree_ | must be a Simplex_tree . |
[out] | tree | The result, where each Vertex_handle is the index of the corresponding point in the range provided to the constructor (it can also be retrieved through the Tangential_complex::get_point function. |
[in] | export_inconsistent_simplices | Also export inconsistent simplices or not? |
|
inline |
Attempts to fix inconsistencies by perturbing the point positions.
[in] | max_perturb | Maximum length of the translations used by the perturbation. |
[in] | time_limit | Time limit in seconds. If -1, no time limit is set. |
|
inline |
Returns the perturbed position of the point corresponding to the vertex given as parameter.
[in] | vertex | Vertex handle of the point to retrieve. |
|
inline |
Returns the point corresponding to the vertex given as parameter.
[in] | vertex | Vertex handle of the point to retrieve. |
|
inline |
Returns the number of inconsistencies
[in] | verbose | If true, outputs a message into std::cerr . |
|
inline |
Sets the maximal possible squared edge length for the edges in the triangulations.
[in] | max_squared_edge_length | Maximal possible squared edge length. |
If the maximal edge length value is too low Tangential_complex::compute_tangential_complex
will throw an exception in debug mode.
GUDHI Version 3.3.0 - C++ library for Topological Data Analysis (TDA) and Higher Dimensional Geometry Understanding. - Copyright : MIT | Generated on Tue Aug 11 2020 11:09:14 for GUDHI by Doxygen 1.8.13 |