Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

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


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Re: point converter between two kernels
  • Date: Wed, 09 Mar 2011 17:46:38 +0100

Please post a file, text between <> disappear.

S.

ppmm wrote:
Thanks for your reply. Actually I searched and checked the post you mentioned
before posting, but I still cannot make it work...

I attached a simplified code that wants to convert the P
(Exact_predicates_exact_constructions_kernel) to pp
(Exact_predicates_inexact_constructions_kernel). If you could help me to
correct the error, that would be very helpful.

Thank a lot.


#include #include #include
#include #include #include #include #include #include #include
#include #include //#include

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;

typedef CGAL::Cartesian_converter converter;

int main()
{
Point_2 P(1,5);
Point pp = converter(P);


return 0;
}


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





Archive powered by MHonArc 2.6.16.

Top of Page