Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Arrangement to file not working

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Arrangement to file not working


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Arrangement to file not working
  • Date: Fri, 04 Dec 2015 08:33:31 +0100
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:v+evHBzR9PQbqDTXCy+O+j09IxM/srCxBDY+r6Qd0e8eIJqq85mqBkHD//Il1AaPBtWFraocw8Pt8IneGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2WVTerzWI4CIIHV2nbEwudrqzQtaapv/0/t7x0qWbWx9Piju5bOE6BzSNhiKViPMrh5B/IL060BrDrygAUe1XwWR1OQDbxE6ktY/jtKJkpi9fsvZk+89bWrjhZIw5S6ZZBXIoKTMb/sru4FP4QAGG/WcdX2Neth1SAg/ZpFHVU5D0vzfgp8R00zWdJ9y3B/hgQjCl9aZsVFntjA8IMjc49Cfcjckm3/ETmw6ouxEqm92cW4qSLvcrJq4=
  • Organization: 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




Archive powered by MHonArc 2.6.18.

Top of Page