summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Rouvreau <vincent.rouvreau@inria.fr>2021-11-08 10:03:24 +0100
committerVincent Rouvreau <vincent.rouvreau@inria.fr>2021-11-08 10:03:24 +0100
commit11b8a288946c953472165ffbb5dbfbeb5ca64d26 (patch)
treee969e2121dd2bfc67f22697e941d38d1e1884562
parent821f616cc35ac890a90aba43e1f8124201e5c4f3 (diff)
code review: factorization - Point_cgal_to_cython weighted version calls unweighted version
-rw-r--r--src/python/include/Alpha_complex_factory.h6
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);
}
};