Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] create a new Triangulation_data_structure

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] create a new Triangulation_data_structure


Chronological Thread 
  • From:
  • To:
  • Subject: Re: [cgal-discuss] create a new Triangulation_data_structure
  • Date: Fri, 31 Oct 2008 11:28:59 +0100 (CET)
  • Importance: Normal

>
>
> Olivier Devillers wrote:
>>
>>> I've already looked to Triangulation and Triangulation_data_structure
>>> but
>>> Trangulation_data_structure is only parametrized with Cell_base and
>>> Vertex_base and I need one that could also use some "Facet_base" so
>>> deriving a new one from it could it be the right answer given that I
>>> still
>>> want to use the other structures like Cell_hendle, Vertex_handle, etc.
>>>
>>
>> There is no explicit Facet in the Triangulation data structure.
>>
>> a Facet is a pair Cell_handle , index, where the index indicates which
>> facet of the Cell you are interested in.
>>
>> If you want to add an information in the facet, you have to add is in
>> both cells that share that facet.
>>
> or you can create an additionnal data structure such as a map
> where each facet is associated with its own information.
> This solution is paying off if only a few facet in the triangulation
> requires to be added the information.
>
> --
> Mariette Yvinec
> Geometrica project team
> INRIA Sophia-Antipolis
>
>
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://lists-sop.inria.fr/wws/info/cgal-discuss
>
This is not a suitable solution for many reasons:
1. the amount of facets I want to save can be important
2. if I can write a class similar to Triangulation_data_structure with
facets in addition, I can make use of facet_iterator and other accessors
3. the additional informations I want to keep within it are strongly
related to facets which make no sens to save them outside.




Archive powered by MHonArc 2.6.16.

Top of Page