Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Triangulation_3: Facets with Info

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Triangulation_3: Facets with Info


Chronological Thread 
  • From: Manuel Caroli <>
  • To:
  • Subject: Re: [cgal-discuss] Triangulation_3: Facets with Info
  • Date: Mon, 04 Feb 2008 09:35:50 +0100

Thomas Zangl wrote:
Hi!

I want to add some stati to a facet of a Triangulation_3. I found vertex_base_with_info and cell_base_with_info. So, what would you recommend to use to add some information on a per facet base? (best practice) I would need some structure (the info/statis) to be easly and fast accessable when iterating over the facets of the triangulation with a facet iterator.
A facet is represented by a (Cell_handle,int) pair. Thus I would store the information in a four-tuple in the cell (each entry of the four-tuple corresponds to one facet). Then you can access it like:
facet->first->info()->get_entry(facet->second) The only drawback is that you have to store the info twice per facet. But right now I don't see a possibility to overcome this.
If you store it in the vertex, then it is much more complicated to "find" the corresponding facet. And also you don't know how many facets are incident to a vertex.

best

Manuel



Archive powered by MHonArc 2.6.16.

Top of Page