Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Problem to write/read nef file

Subject: CGAL users discussion list

List archive

[cgal-discuss] Problem to write/read nef file


Chronological Thread 
  • From: Guillaume C <>
  • To:
  • Subject: [cgal-discuss] Problem to write/read nef file
  • Date: Wed, 15 May 2013 06:51:16 -0700 (PDT)

Hi,

I'm new to CGAL, and i try to write a Nef_polyhedron in a nef file and read
it after. But i have an error when i use lazy_exact_nt or predefined
kernels.

My program:

/
typedef CGAL::Lazy_exact_nt < CGAL::Gmpq > FT_t;
typedef CGAL::Cartesian< FT_t > kernel;
typedef CGAL::Nef_polyhedron_3< kernel > Nef_polyhedron;
typedef CGAL::Polyhedron_3< kernel > Polyhedron;
typedef Polyhedron::Point_3 Point;



int main()
{

Point p(sqrt(2), 0, 0);
Point q( 0,sqrt(2), 0);
Point r( 0, 0,sqrt(2));
Point s( 0, 0, 0);

Nef_polyhedron Cube,Cube2;
Polyhedron P;
P.make_tetrahedron( p, q, r, s);
Cube=P;

std::ofstream out ("temp.nef");
out << Cube;

std::ifstream in ("temp.nef");
in >> Cube;

return 0;
}/

And the error:

/terminate called after throwing an instance of 'CGAL::Assertion_exception'
what(): CGAL ERROR: assertion violation!
File: /home/ostab/PACKAGE/CGAL-3.9/include/CGAL/Nef_3/SNC_io_parser.h
Line: 1368
Explanation: SNC_io_parser::read: error in node line
Abandon/

Thank you.



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Problem-to-write-read-nef-file-tp4657449.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page