Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Access to vertices coordinates from an existing triangulation

Subject: CGAL users discussion list

List archive

[cgal-discuss] Access to vertices coordinates from an existing triangulation


Chronological Thread 
  • From: Youssef ALJ <>
  • To: <>
  • Subject: [cgal-discuss] Access to vertices coordinates from an existing triangulation
  • Date: Thu, 20 May 2010 14:46:52 +0200
  • Importance: Normal

Hi all,

I'd like to know if there's any possibility for a given triangulation to access to vertices' coordinates once this triangulation is constructed.

Suppose we have the following code (from Geomview demo):

#include <CGAL/Cartesian.h>
#include <CGAL/Triangulation_euclidean_traits_xy_3.h>
#include <CGAL/Delaunay_triangulation_2.h>
#include <fstream>
#include <iostream>

typedef CGAL::Cartesian<double> K;
typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt3;
typedef Gt3::Point Point3;
typedef CGAL::Delaunay_triangulation_2<Gt3> Terrain;
  
int main()
{

Terrain T;
  std::ifstream iFile("data/points3", std::ios::in);
Point3 p;
while ( iFile >> p )
{
T.insert( p );
}
return 0;
}
Then i'd like to access to vertices' coordinates. The purpose is to change the geometry of this triangulation (3D coordinates) without changing its connectivity (how faces rely on each other). I didn't find in Delaunay_triangulation_2 class any accessor to vertices. Could any body tell me how to do it?
Any suggestion is helpful.

Regards,
Youssef ALJ




Hotmail: Trusted email with Microsoft’s powerful SPAM protection. Sign up now.



Archive powered by MHonArc 2.6.16.

Top of Page