diff options
author | Vincent Rouvreau <vincent.rouvreau@inria.fr> | 2021-11-08 10:03:24 +0100 |
---|---|---|
committer | Vincent Rouvreau <vincent.rouvreau@inria.fr> | 2021-11-08 10:03:24 +0100 |
commit | 11b8a288946c953472165ffbb5dbfbeb5ca64d26 (patch) | |
tree | e969e2121dd2bfc67f22697e941d38d1e1884562 /src | |
parent | 821f616cc35ac890a90aba43e1f8124201e5c4f3 (diff) |
code review: factorization - Point_cgal_to_cython weighted version calls unweighted version
Diffstat (limited to 'src')
-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); } }; |