Subject: CGAL users discussion list
List archive
- From: <>
- To: <>
- Subject: [cgal-discuss] Loading .off files into Polyhedrons via ifstream?
- Date: Wed, 11 Sep 2013 10:19:58 +0100
Not quite sure what I’m doing wrong here. I’m trying to load the cross and cube .off examples bundled with the Polyhedron demo to a command line app. In brief:
typedef CGAL::Gmpz NT; typedef CGAL::Homogeneous<NT> Kernel; typedef CGAL::Polyhedron_3<Kernel> Polyhedron; typedef CGAL::Nef_polyhedron_3<Kernel> Nef_polyhedron;
Polyhedron P1; std::ifstream in1(argv[2]); // check good etc In1 >> P1; // verbose mode shows gmpz complaining about construction from non-integer double value Nef_polyhedron N1(P1); // throws an exception
CGAL error: assertion violation! _expression_ : pe_prev->is_border() || !internal::Plane_constructor<Plane>::get_pl ane(pe_prev->facet(),pe_prev->facet()->plane()).is_degenerate() File : U:\pkg\cgal\include\CGAL/Nef_3/polyhedron_3_to_nef_3.h Line : 251
Question: Is the assertion the end result of the double -> integer conversion? If so how does one load .off file with double values? The polyhedron_demo_off_plugin appears to do exactly the same thing without any problems.
Many thanks.
|
- [cgal-discuss] Loading .off files into Polyhedrons via ifstream?, g4, 09/11/2013
Archive powered by MHonArc 2.6.18.