diff options
author | Vincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com> | 2022-04-11 09:39:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-11 09:39:16 +0200 |
commit | a43ca657787745e8b945943987b313106ec67f1f (patch) | |
tree | 7958e4bfc128cd0cb0c2cf02857be17b7b3f57cd /src/python/include | |
parent | b066b4376abf66ddc76e61a6a815a409b05fe59b (diff) | |
parent | 25172af7cbe5a3ea3017bed6fde53be471a7e4bf (diff) |
Merge pull request #596 from VincentRouvreau/float_relative_precision_alpha_python
Float relative precision alpha python
Diffstat (limited to 'src/python/include')
-rw-r--r-- | src/python/include/Alpha_complex_interface.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/python/include/Alpha_complex_interface.h b/src/python/include/Alpha_complex_interface.h index 671af4a4..469b91ce 100644 --- a/src/python/include/Alpha_complex_interface.h +++ b/src/python/include/Alpha_complex_interface.h @@ -57,6 +57,16 @@ class Alpha_complex_interface { alpha_ptr_->create_simplex_tree(simplex_tree, max_alpha_square, default_filtration_value); } + static void set_float_relative_precision(double precision) { + // cf. Exact_alpha_complex_dD kernel type in Alpha_complex_factory.h + CGAL::Epeck_d<CGAL::Dynamic_dimension_tag>::FT::set_relative_precision_of_to_double(precision); + } + + static double get_float_relative_precision() { + // cf. Exact_alpha_complex_dD kernel type in Alpha_complex_factory.h + return CGAL::Epeck_d<CGAL::Dynamic_dimension_tag>::FT::get_relative_precision_of_to_double(); + } + private: std::unique_ptr<Abstract_alpha_complex> alpha_ptr_; }; |