Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] switch from traits::point to kernel::point

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] switch from traits::point to kernel::point


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] switch from traits::point to kernel::point
  • Date: Sun, 25 Oct 2009 20:51:17 +0200
  • Organization: GeometryFactory

Le lundi 25 mai 2009 20:02:54, Denny a écrit :
> Hello, anyone know how can I switch from the Traits_2::Point_2,
> specifically Arr_circle_segments_traits_2, to the Kernel::Point_2?
> Otherwise how can I convert a CoordNT to the CGAL number type or a double?

To convert a number type of CGAL to an approximation, in double, use the
function template CGAL::to_double:

http://www.cgal.org/FAQ.html#to_double
http://www.cgal.org/Manual/last/doc_html/cgal_manual/Algebraic_foundations_ref/Function_to_double.html

--
Laurent Rineau, PhD
Release Manager of the CGAL Project
http://www.cgal.org/
R&D Engineer at GeometryFactory
http://www.geometryfactory.com/



Archive powered by MHonArc 2.6.16.

Top of Page