Subject: CGAL users discussion list
List archive
- From: Benjamin SCHWARZ <>
- To:
- Subject: Re: [cgal-discuss] - Convert Point_3 to float x, y, z
- Date: Fri, 15 Dec 2006 16:36:15 +0100
maybe you should try the CGAL::to_double() magic function
--Ben
Le vendredi 15 décembre 2006 à 16:24 +0100, Cédric LE MAITRE a écrit :
> 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
>
- [cgal-discuss] - Convert Point_3 to float x, y, z, Cédric LE MAITRE, 12/15/2006
- Re: [cgal-discuss] - Convert Point_3 to float x, y, z, Sylvain Pion, 12/15/2006
- Re: [cgal-discuss] - Convert Point_3 to float x, y, z, Andreas Fabri, 12/15/2006
- Re: [cgal-discuss] - Convert Point_3 to float x, y, z, Benjamin SCHWARZ, 12/15/2006
Archive powered by MHonArc 2.6.16.