Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Triangulation_cell_base_with_info_3 - how to

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Triangulation_cell_base_with_info_3 - how to


Chronological Thread 
  • From: Qi Pan <>
  • To:
  • Subject: Re: [cgal-discuss] Triangulation_cell_base_with_info_3 - how to
  • Date: Fri, 13 Mar 2009 22:39:35 +0000
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=AEFZg7WgrzFnPIhny5g24O3GK1+kXUiVXHj+Bs4PoclhLn0Tkj8ncBf5R4A5ooPEJc YafRvlN50HFIoRZmcg0+dAfPcwupiFgPIyREky0sTBOVbNR0Cghd/d6yjFWyKEaTmhEG sl4aB+cD6GsdgLgHgQ3VHHuIv0txiHylUAFhE=

Oh my god, sorry, I can't believe I didn't realise that it was a function! For some reason I'd had it engrained in my mind that the info object was contained inside the cell object...

Didn't realise there was an example program for this... is it in triangulation_2 or triangulation_3?

Thanks so much for your time - it probably would have taken me a day to realise that was what was wrong!

Cheers,

Qi


2009/3/13 Sylvain Pion <>
Hi Qi !

a écrit :
Hi, I'm using Triangulation_cell_base_with_info_3 so that I can augment cells
with more information, but reading the manual, it says:
"It provides an easy way to add some user defined information in cells. Note
that input/output operators discard this additional information."

This statement confuses me, as if input/output iterators discard this
additional information, does that mean I cannot access the extra information
when I am using Triangulation_cell_base_with_info_3 with for example a
hierarchical delaunay triangulation (as below)?

[...]

for (Finite_cells_iteratorI fit=dti.finite_cells_begin();
fit!=dti.finite_cells_end();++fit)
       {
          cout<<(*fit).info.in_model<<endl;  <------compile error here

Try info() with the parenthesis ?
Did you find the the manual or the example program confusing about this?

"input/output operators" in the manual refer to the file reading
and writing routines.

--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss



--
Qi Pan
MCR President
Fitzwilliam College,
Cambridge, CB3 0DG
Tel: +44 (0) 1223 477061



Archive powered by MHonArc 2.6.16.

Top of Page