Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] point converter between two kernels

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] point converter between two kernels


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] point converter between two kernels
  • Date: Tue, 08 Mar 2011 08:04:36 +0100

ppmm wrote:
I want to convert point from :Exact_predicates_exact_constructions_kernel to
Exact_predicates_inexact_constructions_kernel. I tried the following, but it
has compiling error.
Thanks a lot for your help.

typedef CGAL::Exact_predicates_exact_constructions_kernel Kernel;
typedef Kernel::Point_2 Point_2;
typedef CGAL::Polygon_2 Polygon_2;
typedef CGAL::Polygon_with_holes_2 Polygon_with_holes_2;
typedef std::list Pwh_list_2;

typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Triangulation_vertex_base_2 Vb;
typedef CGAL::Delaunay_mesh_face_base_2 Fb;
typedef CGAL::Triangulation_data_structure_2 Tds;
typedef CGAL::Constrained_Delaunay_triangulation_2 CDT;
typedef CGAL::Delaunay_mesh_size_criteria_2 Criteria;
typedef CGAL::Delaunay_mesher_2 Mesher;
typedef CGAL::Triangulation_2 Triangulation;
typedef CDT::Vertex_handle Vertex_handle;

typedef CDT::Point Point;

//new define
typedef std::list MPlist;
typedef CGAL::Cartesian_converter converter;
Point p1,p2;
Point_2 p3(0,1);
p1 = converter(p3) ;



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/point-converter-between-two-kernels-tp3340042p3340042.html
Sent from the cgal-discuss mailing list archive at Nabble.com.

See this thread:
https://lists-sop.inria.fr/sympa/arc/cgal-discuss/2011-01/msg00097.html

S.



Archive powered by MHonArc 2.6.16.

Top of Page