Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] - Convert Point_3 to float x, y, z

Subject: CGAL users discussion list

List archive

[cgal-discuss] - Convert Point_3 to float x, y, z


Chronological Thread 
  • From: Cédric LE MAITRE <>
  • To:
  • Subject: [cgal-discuss] - Convert Point_3 to float x, y, z
  • Date: Fri, 15 Dec 2006 16:24:29 +0100

Hello,

I have a question on a problem which seems simple. But it's stupid, i don't found how to resolve it...
I just want to retrieve x, y and z values of a Point_3.
I try this:

typedef CGAL::Gmpz NT;
typedef CGAL::Homogeneous<NT> Kernel;
typedef Kernel::Point_3 Point_3;

[...]

Point_3 point(10, 0, 0);
float x = (float) point.x();

But this code returned an error of casting...
How is it possible to do the conversion ?

Thanks,
Cedric LE MAITRE



Archive powered by MHonArc 2.6.16.

Top of Page