Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: Extracting Information to Simple Array Format, Triangulation connectivity

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: Extracting Information to Simple Array Format, Triangulation connectivity


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Re: Extracting Information to Simple Array Format, Triangulation connectivity
  • Date: Mon, 02 Aug 2010 07:28:56 +0200

htg20 wrote:
Dear Monique,

Thank you. I looked at the IO functionality if triangulation database. However, I
couldn't find anything. This is perhaps because I do not know much of C++.
Nevertheless, I think I would have been nice for such a library like CGAL,
to have simple methods to convert the database into primitive data such as
arrays. This way interfacing with CGAL would be much easier. As I'm saying,
I am just a user.

Cheers
Hossein
Copying data from all_edges_begin to all_edges_end (or the finite version) should allow you to get back the connectivity between points.

If you need to track your original points, use a vertex class such as
Triangulation_vertex_base_with_info_3 and add an integer to each vertex:

(example here http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Triangulation_3/Chapter_main.html#Subsection_37.5.2)

and insert your points one by one to set the index associated to each vertex.

S.



Archive powered by MHonArc 2.6.16.

Top of Page