Subject: CGAL users discussion list
List archive
- From: Mateus Bellomo <>
- To:
- Subject: Re: [cgal-discuss] Arrangement to file not working
- Date: Sat, 5 Dec 2015 09:54:12 -0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:BWQt2BPCBXl6Fw0JkuAl6mtUPXoX/o7sNwtQ0KIMzox0KPX5rarrMEGX3/hxlliBBdydsKIazbKO+4nbGkU+or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6anHS+4HYoFwnlMkItf6KuStCU15z//tvx0qOQSj0AvCC6b7J2IUf+hiTqne5Sv7FfLL0swADCuHpCdrce72ppIVWOg0S0vZ/or9YwuxlWoO8ros5cTb3hLeN/Vq1dFD1gMmYv5cStuwOEVhqK/nJbU2MYlV1DDAHBqR37RZzsqTCpiu0o0yaTOYj6TKs/RC+5x6ZtUh7hzikdZBAj92SCr8Vsgb9A6Disoxh4xomcNIScKPdjZanQedcdQG1pUcNYVigHCYS5OdhcR9EdNPpV+tGu72AFqgGzUFGh
Thanks for the help!
2015-12-05 7:39 GMT-02:00 Efi Fogel <>:
EfiAttached is a patch, so that you can fix the code immediately.The relevant code resides in include/CGAL/Arr_geometry_traits/Polycurve_2.hHi Mateus,You have encountered a bug (or perhaps two) in the exporter and importer of polycurves.The next release of CGAL will include the fix.Thank you,____ _ ____ _
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/On Fri, Dec 4, 2015 at 2:37 PM, Mateus Bellomo <> wrote:Thank youI'm not sure about that: the kernel is the CGAL::Cartesian<Number_type> ?I'm sending the .cpp and CMakeLists attached.2015-12-04 5:33 GMT-02:00 Sebastien Loriot (GeometryFactory) <>:What kernel are you using?
Please provide a complete example we can compile and run.
Sebastien.--
On 12/04/2015 03:40 AM, Mateus Bellomo wrote:
Hello
I'm trying to use the I/O functions to write and read an arrangement to
a file. The problem is that when I try to read the arrangement from the
file the program get stucked. I'm using a very simple program to test
and I already checked the file generated by write and it is not empty.
My .cpp code:
Arrangement_2 arr1,arr2;
Point_2 p1 (1 , 3 ) , p2 (3 , 5 ) ;
XSegment_2 s1 (p1 , p2 ) ;
Arrangement_2::Halfedge_handle e1 = arr1.insert_in_face_interior( s1
,arr1.unbounded_face( ) ) ;
Vertex_handle v1 = e1->source();
ofstream out_file("arr_ex_io.dat");
out_file << arr1;
out_file.close();
ifstream in_file("arr_ex_io.dat");
in_file >> arr2;
in_file.close();
Anyone had the same problem? Thanks in advance
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [cgal-discuss] Arrangement to file not working, Mateus Bellomo, 12/04/2015
- Re: [cgal-discuss] Arrangement to file not working, Sebastien Loriot (GeometryFactory), 12/04/2015
- Re: [cgal-discuss] Arrangement to file not working, Mateus Bellomo, 12/04/2015
- Re: [cgal-discuss] Arrangement to file not working, Efi Fogel, 12/05/2015
- Re: [cgal-discuss] Arrangement to file not working, Mateus Bellomo, 12/05/2015
- Re: [cgal-discuss] Arrangement to file not working, Efi Fogel, 12/05/2015
- Re: [cgal-discuss] Arrangement to file not working, Mateus Bellomo, 12/04/2015
- Re: [cgal-discuss] Arrangement to file not working, Sebastien Loriot (GeometryFactory), 12/04/2015
Archive powered by MHonArc 2.6.18.