Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] very very basic CGAL question : how to convert handles to native types

Subject: CGAL users discussion list

List archive

[cgal-discuss] very very basic CGAL question : how to convert handles to native types


Chronological Thread 
  • From: <>
  • To:
  • Subject: [cgal-discuss] very very basic CGAL question : how to convert handles to native types
  • Date: Fri, 6 Nov 2009 15:03:28 +0100 (CET)

Hi everyone,

I have a very basic question about how CGAL allows you to read data
structures.

in the mesh_polyhedral domain example (the code follows), once you have your
C3t3 object how do you access the cell (which in that case is a tetrahedra)
node indices as integers ?

basically I would like to just have something similar to

Vector<Tet> tetVec;
for(C3t3::Cell_iterator iter = c3t3.cells_begin();iter!=c3t3.cells_end ()
;iter++){

tetVec.push_back(Tet(iter->vertex(0),iter->vertex(1),iter->vertex(2),iter->vertex(3)));
}
where Tet is a custom data structure that I MUST use, and that takes four
'int'
as parameters.

I apologize if this seems to be a strange question, but I am a total beginner
at using CGAL and this is described in none of the tutorials I found (they all
ouput to the console or files).

Thank you for your help.

Thibaut



Archive powered by MHonArc 2.6.16.

Top of Page