Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Interval Skip List in x-y-direction

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Interval Skip List in x-y-direction


Chronological Thread 
  • From: Manuel Caroli <>
  • To:
  • Subject: Re: [cgal-discuss] Interval Skip List in x-y-direction
  • Date: Mon, 09 Mar 2009 20:10:41 +0100

Hi Matthias,

you are probably using one of the projection traits like Triangulation_euclidean_traits_xy_3, right?

p_c from your example below should be of type Traits::Point_2
The point type of the projection traits class is Point_3. You should try something like

Traits::Point_2 p_c(2.0,3.2,42);
Face_handle fh = Delaunay.locate(p_c);

where you put 42 as the coordinate that is discarded by your traits.

hope that helps

Manuel



wrote:
Hi Andreas,
that seems to be an appropriate solution. However I don't get it to work. Does
locate only works for Triangulation_2 or also for Delaunay_Triangulation_2 ? I
get an error "no matching function" when trying this:

Point2 p_c(2.0,3.2);
Face_handle fh = Delaunay.locate(p_c);




Archive powered by MHonArc 2.6.16.

Top of Page