Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Does CGAL::refine_Delaunay_mesh_2() support CGAL/Triangulation_euclidean_traits_xy_3.h?

Subject: CGAL users discussion list

List archive

[cgal-discuss] Does CGAL::refine_Delaunay_mesh_2() support CGAL/Triangulation_euclidean_traits_xy_3.h?


Chronological Thread 
  • From: "M. Hazegh" <>
  • To:
  • Subject: [cgal-discuss] Does CGAL::refine_Delaunay_mesh_2() support CGAL/Triangulation_euclidean_traits_xy_3.h?
  • Date: Thu, 2 Oct 2008 15:28:46 -0400
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=ZRTJi4ElMnl6/sMTw22ldw9Dg4EaRRcOZtJSv0q11ADtY58CjvtIPdFzpHVtmBbXda SPqwouWTRUtP2txfijKmE0MAfXsJVd1j+Xl7Fq9LBdwLTG0oK4peUc26awNo11kBWjmL 2l/qzmPIOfpjsBmkFvp98a7hgw8cQQ8pSeR9I=

Hello everyone,

I am using CGAL/Triangulation_euclidean_traits_xy_3.h to mesh a
surface on xy plane. I get the following error when I compile with
VS2005 and CGAL-3.3.1:

error C2039: 'FT' : is not a member of 'CGAL::Etxy3<R>' c:\Program
Files\CGAL-3.3.1\include\CGAL\Mesh_2\Clusters.h 58

If I remove CGAL::refine_Delaunay_mesh_2(cdt, Criteria(0.125, 0.5))
function call from the code, the code compiles successfully. Does
refine_Delaunay_mesh_2() support
Triangulation_euclidean_traits_xy_3.h?

Any help is appreciated,
-Ramin

Here is the code snippet.
===BEGIN============================
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Triangulation_euclidean_traits_xy_3.h>
#include <CGAL/Constrained_Delaunay_triangulation_2.h>
#include <CGAL/Delaunay_mesher_2.h>
#include <CGAL/Delaunay_mesh_face_base_2.h>
#include <CGAL/Delaunay_mesh_size_criteria_2.h>
#include <iostream>

struct K : public CGAL::Exact_predicates_inexact_constructions_kernel {};
typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Tr_xy_3;
typedef CGAL::Triangulation_vertex_base_2<Tr_xy_3> Vb;
typedef CGAL::Delaunay_mesh_face_base_2<Tr_xy_3> Fb;
typedef CGAL::Triangulation_data_structure_2<Vb, Fb> Tds;
typedef CGAL::Constrained_Delaunay_triangulation_2<Tr_xy_3, Tds> CDT;
typedef CGAL::Delaunay_mesh_size_criteria_2<CDT> Criteria;
typedef CDT::Vertex_handle Vertex_handle;
typedef CDT::Point Point;
typedef CDT::Finite_faces_iterator Face_iterator;
typedef CDT::Triangle Triangle;

void main() {
// construct a constrained triangulation
Vertex_handle va = cdt.insert(Point(-4,0, 0));
Vertex_handle vb = cdt.insert(Point(0,-1, 0));
Vertex_handle vc = cdt.insert(Point(4,0, 0));
Vertex_handle vd = cdt.insert(Point(0,1, 0));
cdt.insert(Point(2, 0.6, 0));

cdt.insert_constraint(va, vb);
cdt.insert_constraint(vb, vc);
cdt.insert_constraint(vc, vd);
cdt.insert_constraint(vd, va);

CGAL::refine_Delaunay_mesh_2(cdt, Criteria(0.125, 0.5));

}
===END============================



Archive powered by MHonArc 2.6.16.

Top of Page