Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Updating code based on CGAL

Subject: CGAL users discussion list

List archive

[cgal-discuss] Updating code based on CGAL


Chronological Thread 
  • From: grivet <>
  • To:
  • Subject: [cgal-discuss] Updating code based on CGAL
  • Date: Sat, 2 Nov 2013 21:00:49 -0700 (PDT)

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;


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.



Archive powered by MHonArc 2.6.18.

Top of Page