fix the 2D triangulations

This commit is contained in:
Andreas Fabri
2016-11-03 13:08:31 +01:00
committed by Jane Tournois
parent dcf5f32dc0
commit 44d0fa4d6f
5 changed files with 32 additions and 8 deletions
@@ -2932,6 +2932,11 @@ namespace CartesianKernelFunctors {
typedef const Point_2& type;
};
template<typename F>
struct result<F(Point_2)> {
typedef const Point_2& type;
};
Rep // Point_2
operator()(Return_base_tag, Origin o) const
{ return Rep(o); }
@@ -2962,6 +2967,10 @@ namespace CartesianKernelFunctors {
return construct_point_2(x,y);
}
const Point_2&
operator()(const Point_2 & p) const
{ return p; }
const Point_2&
operator()(const Weighted_point_2 & p) const
{ return p.rep().point(); }