Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Re: Converting doubles to Filtered_extended_homogeneous

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: Converting doubles to Filtered_extended_homogeneous


Chronological Thread 
  • From: erickee <>
  • To:
  • Subject: [cgal-discuss] Re: Converting doubles to Filtered_extended_homogeneous
  • Date: Fri, 3 Feb 2012 07:27:22 -0800 (PST)

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();
std::cout << hx;

}

--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Converting-doubles-to-Filtered-extended-homogeneous-tp4332165p4354895.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page