Subject: CGAL users discussion list
List archive
- 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!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:
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.
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
- Triangulation_3: Facets with Info, Thomas Zangl, 02/03/2008
- Re: [cgal-discuss] Triangulation_3: Facets with Info, Manuel Caroli, 02/04/2008
- Re: [cgal-discuss] Triangulation_3: Facets with Info, Monique . Teillaud, 02/04/2008
- Re: [cgal-discuss] Triangulation_3: Facets with Info, Manuel Caroli, 02/04/2008
Archive powered by MHonArc 2.6.16.