diff options
author | MathieuCarriere <mathieu.carriere3@gmail.com> | 2020-01-31 14:53:33 -0500 |
---|---|---|
committer | MathieuCarriere <mathieu.carriere3@gmail.com> | 2020-01-31 14:53:33 -0500 |
commit | b993f784915fc387a7c08c9318757a27e301cf3d (patch) | |
tree | 215e33b7eab7c301e1fa009676d403c2b54857bd /src/python/include | |
parent | 62e92e64bd97ec0bd26c31e071228f7d7c78b0e5 (diff) | |
parent | e1f3b0c4fccee9fd81fc8dc6319b9c36600e43c7 (diff) |
Merge branch 'master' of https://github.com/GUDHI/gudhi-devel into generators
Diffstat (limited to 'src/python/include')
-rw-r--r-- | src/python/include/Alpha_complex_interface.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/python/include/Alpha_complex_interface.h b/src/python/include/Alpha_complex_interface.h index e9bbadb0..8614eee3 100644 --- a/src/python/include/Alpha_complex_interface.h +++ b/src/python/include/Alpha_complex_interface.h @@ -50,13 +50,9 @@ class Alpha_complex_interface { std::vector<double> get_point(int vh) { std::vector<double> vd; - try { - Point_d const& ph = alpha_complex_->get_point(vh); - for (auto coord = ph.cartesian_begin(); coord != ph.cartesian_end(); coord++) - vd.push_back(CGAL::to_double(*coord)); - } catch (std::out_of_range const&) { - // std::out_of_range is thrown in case not found. Other exceptions must be re-thrown - } + Point_d const& ph = alpha_complex_->get_point(vh); + for (auto coord = ph.cartesian_begin(); coord != ph.cartesian_end(); coord++) + vd.push_back(CGAL::to_double(*coord)); return vd; } |