Subject: CGAL users discussion list
List archive
[cgal-discuss] handling_double_coordinates.cpp isn't handling double coordinates
Chronological Thread
- From: "J.L.M." <>
- To:
- Subject: [cgal-discuss] handling_double_coordinates.cpp isn't handling double coordinates
- Date: Sun, 23 May 2010 15:01:52 -0400
I need to pull in a .off file that I created with Blender. Section 27.6 of the CGAL manual states:
"The most important advantage of the filtered kernel is that it is a Cartesian kernel, which allows the proper handling of OFF files using floating-point coordinates."
I have compiled the example program handling_double_coordinates.cpp, and when I run it like so:
cat cube.off | ./handling_double_coordinates
I get an assertion:
terminate called after throwing an instance of 'CGAL::Assertion_exception'
what(): CGAL ERROR: assertion violation!
Expr: pe_prev->is_border() || pe_prev->facet()->plane().has_on(pv.point())
File: /home/jlm/school/masters_thesis/code/CGAL-3.6/include/CGAL/Nef_3/polyhedron_3_to_nef_3.h
Line: 224
Aborted
The cube.off file is attached. Please note that the first coordinate is 1.000001. If I change this to 1.000000, then there is no assertion. It seems to me that this doesn't actually handle double coordinates. Is this a bug in CGAL? Is there a way to work around it?
Thanks for any help you can provide.
cube.off below:
OFF
8 6 0
1.000001 1.000000 -1.000000
1.000000 -1.000000 -1.000000
-1.000000 -1.000000 -1.000000
-1.000000 1.000000 -1.000000
1.000000 1.000000 1.000000
1.000000 -1.000000 1.000000
-1.000000 -1.000000 1.000000
-1.000000 1.000000 1.000000
4 3 2 1 0
4 5 6 7 4
4 1 5 4 0
4 2 6 5 1
4 3 7 6 2
4 7 3 0 4
- [cgal-discuss] handling_double_coordinates.cpp isn't handling double coordinates, J.L.M., 05/23/2010
Archive powered by MHonArc 2.6.16.