Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss]A problem about 2D Triangulation Data Structure in 3D coordinate

Subject: CGAL users discussion list

List archive

[cgal-discuss]A problem about 2D Triangulation Data Structure in 3D coordinate


Chronological Thread 
  • From: 朱涛 <>
  • To:
  • Subject: [cgal-discuss]A problem about 2D Triangulation Data Structure in 3D coordinate
  • Date: Sun, 08 Apr 2007 10:29:41 +0800
  • Priority: normal
  • Subject-xx:

Dear all,

I want to build a surface mesh(sphere surface for example) in 3D
coordinate using 2D Triangulation Data Structure, But I encounter a
problem.

If I use the following definition, the compiler shows error C2039: it
can not acquire z-coordinate.

typedef CGAL::Triangulation_vertex_base_2<K> Vb;
typedef CGAL::Triangulation_face_base_2<K> Fb;
typedef CGAL::Triangulation_data_structure_2<Vb, Fb> Tds;

If I use the following definition, The compile can not recognise "Tds".

typedef CGAL::Triangulation_ds_vertex_base_2<Tds> Vb;
typedef CGAL::Triangulation_ds_face_base_2<Tds> Fb;
typedef CGAL::Triangulation_data_structure_2<Vb, Fb> Tds;

I notice that 21.3.2 in cgal_manual mentions "The cyclic dependancy of
template parameters", but I do not know how to use it. Please help me.

Thank you!

Best regards!

Tao Zhu
Department of Mechanics and Engineering Science
School of Engineering
Peking University,Beijing 100871,P.R.China
Tel: 86-10-5276-2447
E-mail:




  • [cgal-discuss]A problem about 2D Triangulation Data Structure in 3D coordinate, 朱涛, 04/08/2007

Archive powered by MHonArc 2.6.16.

Top of Page