Subject: CGAL users discussion list
List archive
- From: "Laurent Rineau (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Re: Converting doubles to Filtered_extended_homogeneous
- Date: Fri, 03 Feb 2012 16:38:11 +0100
- Organization: GeometryFactory
Le vendredi 03 février 2012 07:27:22 erickee a écrit :
> I think this is close, but I still have a conversion issue. The code below
> produces a compilation error because it tries to convert to double. How can
> I get my points back into a double? I haven't found a conversion
> function...
>
> typedef CGAL::Exact_predicates_exact_constructions_kernel::FT FT;
> typedef CGAL::Extended_cartesian<FT> Extended_kernel;
> typedef CGAL::Nef_polyhedron_2<Extended_kernel> Nef_polyhedron;
> typedef Nef_polyhedron::Point Point;
>
> int main() {
>
> Point p(4.2323,4.23);
> double hx = p.hx();
Write:
double hx = CGAL::to_double(p.hx());
> std::cout << hx;
>
> }
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
- [cgal-discuss] Re: Converting doubles to Filtered_extended_homogeneous, erickee, 02/03/2012
- Re: [cgal-discuss] Re: Converting doubles to Filtered_extended_homogeneous, Sebastien Loriot (GeometryFactory), 02/03/2012
- [cgal-discuss] Re: Converting doubles to Filtered_extended_homogeneous, erickee, 02/03/2012
- Re: [cgal-discuss] Re: Converting doubles to Filtered_extended_homogeneous, Laurent Rineau (GeometryFactory), 02/03/2012
- [cgal-discuss] Re: Converting doubles to Filtered_extended_homogeneous, erickee, 02/03/2012
- Re: [cgal-discuss] Re: Converting doubles to Filtered_extended_homogeneous, Sebastien Loriot (GeometryFactory), 02/03/2012
Archive powered by MHonArc 2.6.16.