Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Newbie questions concerning Delaunay_triangulation_3

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Newbie questions concerning Delaunay_triangulation_3


Chronological Thread 
  • From: Laurent Rineau <>
  • To:
  • Subject: Re: [cgal-discuss] Newbie questions concerning Delaunay_triangulation_3
  • Date: Fri, 15 Jun 2007 01:16:43 +0200
  • Organization: Inria, Sophia Antipolis, FRANCE

On Thursday 14 June 2007 08:16:09 pm

wrote:
> Dear List,
>
> I have recently downloaded and installed CGAL and have run into a minor
> problem. When I run the attached code, the finite cells include the point
> (0.5,0.5,0.5), which I have not entered. I only want a delaunay
> triangulation of the points I have entered. I have tried to remove that
> point, which corresponds to vertices_begin(), but that results in an
> exception.

During the code, you do:
Cell=td.finite_cells_begin();

The type Cell is Triangulation::Cell_iterator, which is the same as
Triangulation::All_cells_iterator. Thus your code has uncertain behaviour.

You should use the types Finite_cells_iterator, and Finite_vertices_iterator,
and the corresponding methods finite_cells_begin/end() and
finite_vertices_begin/end().

--
Laurent Rineau
INRIA - Sophia Antipolis
BP 93, 2004 Route des Lucioles
06902 Sophia Antipolis Cedex FRANCE



Archive powered by MHonArc 2.6.16.

Top of Page