Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Arrangement_2 IO problem

Subject: CGAL users discussion list

List archive

[cgal-discuss] Arrangement_2 IO problem


Chronological Thread 
  • From: Paul Neugebauer <>
  • To:
  • Subject: [cgal-discuss] Arrangement_2 IO problem
  • Date: Tue, 24 Jun 2008 15:42:33 +0200

Hi list,

I have got a strange problem with the Arrangement_2 IO. Here is a part of my program:

...
Naive_pl naive_pl(arr);

point_location_query(naive_pl, source);

// Write the arrangement to a file
std::ofstream out_file("output/arr_io.dat");
Formatter formatter;

write(arr, out_file, formatter);
out_file.close();

// Read the arrangement from a file
std::ifstream in_file2("output/arr_io.dat");
Arrangement_2 arr2;

read(arr2, in_file2, formatter);
in_file2.close();
assert(arr2.is_valid());

Naive_pl naive_pl2(arr2);

point_location_query(naive_pl2, source);
...

The ouput is: The point is located inside the UNBOUNDED face
The point is located inside the BOUNDED face

But it is the same point: source
If I use naive_pl for the second point_location_query again, like this:

point_location_query(naive_pl, source);

everything is ok.

Any idea anybody ?

Thanks,
paul






Archive powered by MHonArc 2.6.16.

Top of Page