Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: How to get some info from a Delaunay Triangulation

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: How to get some info from a Delaunay Triangulation


Chronological Thread 
  • From: Philipp Moeller <>
  • To:
  • Subject: Re: [cgal-discuss] Re: How to get some info from a Delaunay Triangulation
  • Date: Wed, 09 May 2012 16:23:19 +0200
  • Organization: GeometryFactory

horstmann
<>
writes:

> Thanks again,
>
> I guessed so, but this way:
>
>>> Delaunay::Finite_cells_iterator fit;
>>>
>>> for(fit = dt.finite_cells_begin() ; fit != dt.finite_cells_end() ; fit++)
>>> for(i=0;i<4;i++)
>>> fit->vertex(i).point();
>>
>
>>fit->vertex(i).point() will work.
>
> I'm getting a compilation error: vertex has no member named "point"
>
> error: ‘class
> CGAL::internal::CC_iterator<CGAL::Compact_container&lt;CGAL::Triangulation_hierarchy_vertex_base_3&lt;CGAL::Triangulation_vertex_base_3&lt;CGAL::Epick,
> CGAL::Triangulation_ds_vertex_base_3&lt;CGAL::Triangulation_data_structure_3&lt;CGAL::Triangulation_hierarchy_vertex_base_3&lt;CGAL::Triangulation_vertex_base_3&lt;CGAL::Epick,
> CGAL::Triangulation_ds_vertex_base_3&lt;void> > >,
> CGAL::Triangulation_cell_base_3<CGAL::Epick,
> CGAL::Triangulation_ds_cell_base_3&lt;void> > > > > >, CGAL::Default>,
> false>’ has no member named ‘point’
>
> Any idea of what I might be doing wrong?

vertex() returns a Vertex_handle, you need to dereference it to get a
reference to the actual Vertex. e.g. fit->vertex(i)->point();
^^^
--
Philipp Moeller
GeometryFactory



Archive powered by MHonArc 2.6.16.

Top of Page