Subject: CGAL users discussion list
List archive
- From: Efi Fogel <>
- To:
- Subject: Re: [cgal-discuss] Arrangement_2 IO problem
- Date: Thu, 26 Jun 2008 19:41:31 +0300
It's seems like a bug. Probably in the writing to or reading from a file. Can you confirm?
Paul Neugebauer wrote:
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
____ _ ____ _
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/
----------------------------------------------------------------------------
This e-mail message may contain information which is CONFIDENTIAL, privileged
or proprietary to Lucidlogix Technologies, Ltd. and is subject to
restrictions on disclosure and use. If you have received this e-mail message
in error, please notify the sender immediately by telephone or e-mail and
destroy the original message without making a copy. Thank you.
----------------------------------------------------------------------------
- [cgal-discuss] Arrangement_2 IO problem, Paul Neugebauer, 06/24/2008
- Re: [cgal-discuss] Arrangement_2 IO problem, Efi Fogel, 06/26/2008
- Re: [cgal-discuss] Arrangement_2 IO problem, Paul Neugebauer, 06/26/2008
- Re: [cgal-discuss] Arrangement_2 IO problem, David Keller, 06/28/2008
- Re: [cgal-discuss] Arrangement_2 IO problem, Paul Neugebauer, 06/26/2008
- Re: [cgal-discuss] Arrangement_2 IO problem, Efi Fogel, 06/26/2008
Archive powered by MHonArc 2.6.16.