Skip to Content.
Sympa Menu

cgal-discuss - add customized information in delaunay terrain

Subject: CGAL users discussion list

List archive

add customized information in delaunay terrain


Chronological Thread 
  • From: sanlington <>
  • To: cgal-discuss <>
  • Subject: add customized information in delaunay terrain
  • Date: Tue, 29 Apr 2008 12:32:40 +0800 (CST)

hello, everyone:
I tried to get a delaunay terrain ,and add some information ,such as color or normal, into vertices of this triangulation, writing these codes:


#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Triangulation_vertex_base_with_info_2.h>
#include <CGAL/Triangulation_euclidean_traits_xy_3.h>
#include <CGAL/Delaunay_triangulation_2.h>

typedef CGAL::Exact_predicates_inexact_constructions_kernel          K;
typedef CGAL::Triangulation_vertex_base_with_info_2<CGAL::Color, K>  Vb;
typedef CGAL::Triangulation_data_structure_2<Vb>                     Tds;
typedef CGAL::Triangulation_euclidean_traits_xy_3<K>                 Gt;
typedef CGAL::Delaunay_triangulation_2<Gt,Tds>                       Delaunay;
typedef Delaunay::Point                                              Point;


but when I tried to insert points into the triangulation:

Delaunay Dt;
Dt.insert(Point(0.,1.,3.));

compile error occured:
c:\Program Files\CGAL-3.2.1\include\CGAL\Triangulation_2.h(2063) : error C2664: 'CGAL::Triangulation_2<Gt,Tds>::xy_equal' : cannot convert parameter 2 from 'CGAL::Tvb<GT,Vb>::Point' to 'const CGAL::Triangulation_2<Gt,Tds>::Point &'.....

what's the problem ? any help will be appreciated,thank you.
 
 



Archive powered by MHonArc 2.6.16.

Top of Page