Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Updating code based on CGAL
- Date: Mon, 04 Nov 2013 07:47:07 +0100
- Organization: GeometryFactory
On 11/03/2013 05:00 AM, grivet wrote:
Hi,
I have old code based on CGAL 3.0. I would like to update this code to use
latest version of CGAL (4.3). The old code is using these typedef
typedef CGAL::Filtered_exact<double, CGAL::MP_Float> NT;
typedef CGAL::Cartesian<NT> Rep;
Filtered_exact<> is deprecated. The documentation suggests to replace it by
Filtered_kernel
http://www.cgal.org/Manual/3.2/doc_html/cgal_manual/NumberTypeSupport_ref/Class_Filtered_exact.html#Cross_link_anchor_1137
In my code I change these two typedef by
typedef CGAL::Simple_cartesian<CGAL::MP_Float> Rep;
typedef CGAL::Filtered_kernel<Rep> NT;
You should use:
typedef CGAL::Filtered_kernel< Simple_cartesian<CGAL::Gmpq> > K;
typedef K::NT NT;
or even
typedef CGAL::Exact_predicates_exact_constructions_kernel K;
Sebastien.
In my old code (CGAL v3.0) I have something like that
std::vector<NT> mdists;
mdists.resize( triang.number_of_vertices(), NT(0) );
At compilation step I receive this error
<function-style-cast>' : cannot convert from 'int' to 'NT'
Are my type def are correct?
Is is the rest of the code that need to be changed?
thank you
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Updating-code-based-on-CGAL-tp4658361.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Updating code based on CGAL, grivet, 11/03/2013
- Re: [cgal-discuss] Updating code based on CGAL, Sebastien Loriot (GeometryFactory), 11/04/2013
- Re: [cgal-discuss] Updating code based on CGAL, grivet, 11/05/2013
- Re: [cgal-discuss] Updating code based on CGAL, Marc Glisse, 11/05/2013
- Re: [cgal-discuss] Updating code based on CGAL, grivet, 11/05/2013
- Re: [cgal-discuss] Updating code based on CGAL, Sebastien Loriot (GeometryFactory), 11/04/2013
Archive powered by MHonArc 2.6.18.