Subject: CGAL users discussion list
List archive
- 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.
- [cgal-discuss] Problem to write/read nef file, Guillaume C, 05/15/2013
- [cgal-discuss] Re: Problem to write/read nef file, ChaoM, 05/15/2013
- Re: [cgal-discuss] Problem to write/read nef file, Sebastien Loriot (GeometryFactory), 05/16/2013
- Re: [cgal-discuss] Problem to write/read nef file, Guillaume Caron, 05/16/2013
- Re: [cgal-discuss] Problem to write/read nef file, Sebastien Loriot (GeometryFactory), 05/16/2013
- Re: [cgal-discuss] Problem to write/read nef file, Guillaume Caron, 05/16/2013
- Re: [cgal-discuss] Problem to write/read nef file, Sebastien Loriot (GeometryFactory), 05/16/2013
- Re: [cgal-discuss] Problem to write/read nef file, Guillaume Caron, 05/16/2013
- Re: [cgal-discuss] Problem to write/read nef file, Sebastien Loriot (GeometryFactory), 05/16/2013
- Re: [cgal-discuss] Problem to write/read nef file, Guillaume Caron, 05/21/2013
- Re: [cgal-discuss] Problem to write/read nef file, Sebastien Loriot (GeometryFactory), 05/21/2013
- Re: [cgal-discuss] Problem to write/read nef file, Guillaume Caron, 05/16/2013
- Re: [cgal-discuss] Problem to write/read nef file, Sebastien Loriot (GeometryFactory), 05/16/2013
- Re: [cgal-discuss] Problem to write/read nef file, Guillaume Caron, 05/16/2013
- Re: [cgal-discuss] Problem to write/read nef file, Sebastien Loriot (GeometryFactory), 05/16/2013
- Re: [cgal-discuss] Problem to write/read nef file, Guillaume Caron, 05/16/2013
Archive powered by MHonArc 2.6.18.