From 6e10080f95b09acf0f0955c1ec9b43c2612d08fb Mon Sep 17 00:00:00 2001 From: Marc Glisse Date: Sun, 9 Feb 2014 12:18:42 +0100 Subject: [PATCH] hack to get homogeneous coordinates --- NewKernel_d/include/CGAL/Kernel_d/Kernel_d_interface.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/NewKernel_d/include/CGAL/Kernel_d/Kernel_d_interface.h b/NewKernel_d/include/CGAL/Kernel_d/Kernel_d_interface.h index 5eab7f2b64c..46972f275cb 100644 --- a/NewKernel_d/include/CGAL/Kernel_d/Kernel_d_interface.h +++ b/NewKernel_d/include/CGAL/Kernel_d/Kernel_d_interface.h @@ -71,10 +71,9 @@ template struct Kernel_d_interface : public Base_ { return this->kernel().compute_coordinate_d_object()(p,i); } RT homogeneous(Point_d const&p, int i){ - throw "not implemented yet"; - return 0; - // FIXME - //return this->kernel().compute_coordinate_d_object()(p,i); + if (i == dimension(p)) + return 1; + return cartesian(p); } }; struct Construct_cartesian_const_iterator_d : private Store_kernel {