Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Barycentric_coordinates_d

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Barycentric_coordinates_d


Chronological Thread 
  • From: Marc Glisse <>
  • To:
  • Subject: Re: [cgal-discuss] Barycentric_coordinates_d
  • Date: Tue, 5 Apr 2016 14:02:33 +0200 (CEST)

On Tue, 5 Apr 2016, Anjishnu Bandyopadhyay wrote:

Can someone tell me how to use the Barycentric_coordinates_d. A simple generalisation of Barycentric_coordinates_2 doesn't work. Is there any example for this?
I am trying to find the barycentric coordinates of a point in a cell after Delaunay triangulation. The code is follows

T::Full_cell_handle c;
c = t.locate(point);
T::Full_cell C = *c;
std::vector<K::Point_d> coordinates;

K::Barycentric_coordinates_d b;
b(C.vertices_begin(), C.vertices_end(), point, std::insert_iterator<std::vector<K::Point_d> >(coordinates, std::next(coordinates.begin())));

Please always post a complete example that we can just feed directly to a compiler to reproduce your issue.

I am going to assume that K is CGAL::Epick_d<whatever>. Then Barycentric_coordinates_d is simply not implemented (yet).

--
Marc Glisse



Archive powered by MHonArc 2.6.18.

Top of Page