diff options
-rw-r--r-- | src/python/include/Alpha_complex_factory.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/python/include/Alpha_complex_factory.h b/src/python/include/Alpha_complex_factory.h index 298469fe..8f820fc9 100644 --- a/src/python/include/Alpha_complex_factory.h +++ b/src/python/include/Alpha_complex_factory.h @@ -54,11 +54,7 @@ struct Point_cgal_to_cython<CgalPointType, true> { std::vector<double> operator()(CgalPointType const& weighted_point) const { const auto& point = weighted_point.point(); - std::vector<double> vd; - vd.reserve(point.dimension()); - for (auto coord = point.cartesian_begin(); coord != point.cartesian_end(); coord++) - vd.push_back(CGAL::to_double(*coord)); - return vd; + return Point_cgal_to_cython<decltype(point), false>()(point); } }; |