diff options
author | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2021-07-01 17:30:38 +0200 |
---|---|---|
committer | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2021-07-01 17:30:38 +0200 |
commit | f70e6f26f329428184fc5cf935ad4dfc20648bfb (patch) | |
tree | 8dff005f5ddbbf5e4efe774cee2234883ac96684 /src/python/include/Alpha_complex_factory.h | |
parent | 67366f6ad3770da26f101dc5f6d2e600219e2ace (diff) |
Revert AlphaComplex3D. To be done with periodic
Diffstat (limited to 'src/python/include/Alpha_complex_factory.h')
-rw-r--r-- | src/python/include/Alpha_complex_factory.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/python/include/Alpha_complex_factory.h b/src/python/include/Alpha_complex_factory.h index fbbf8896..298469fe 100644 --- a/src/python/include/Alpha_complex_factory.h +++ b/src/python/include/Alpha_complex_factory.h @@ -147,41 +147,6 @@ class Inexact_alpha_complex_dD final : public Abstract_alpha_complex { Alpha_complex<Kernel, Weighted> alpha_complex_; }; -template <complexity Complexity, bool Weighted = false> -class Alpha_complex_3D final : public Abstract_alpha_complex { - private: - using Bare_point = typename Alpha_complex_3d<Complexity, Weighted, false>::Bare_point_3; - using Point = typename Alpha_complex_3d<Complexity, Weighted, false>::Point_3; - - static Bare_point pt_cython_to_cgal_3(std::vector<double> const& vec) { - return Bare_point(vec[0], vec[1], vec[2]); - } - - public: - Alpha_complex_3D(const std::vector<std::vector<double>>& points) - : alpha_complex_(boost::adaptors::transform(points, pt_cython_to_cgal_3)) { - } - - Alpha_complex_3D(const std::vector<std::vector<double>>& points, const std::vector<double>& weights) - : alpha_complex_(boost::adaptors::transform(points, pt_cython_to_cgal_3), weights) { - } - - virtual std::vector<double> get_point(int vh) override { - // Can be a Weighted or a Bare point in function of Weighted - return Point_cgal_to_cython<Point, Weighted>()(alpha_complex_.get_point(vh)); - } - - virtual bool create_simplex_tree(Simplex_tree_interface<>* simplex_tree, double max_alpha_square, - bool default_filtration_value) override { - alpha_complex_.create_complex(*simplex_tree, max_alpha_square); - return true; - } - - private: - Alpha_complex_3d<Complexity, Weighted, false> alpha_complex_; -}; - - } // namespace alpha_complex } // namespace Gudhi |