Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

[cgal-discuss] Arrangement to file not working


Chronological Thread 
  • From: Mateus Bellomo <>
  • To:
  • Subject: [cgal-discuss] Arrangement to file not working
  • Date: Fri, 4 Dec 2015 00:40:11 -0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:L43YsBN9497iIZK2y/cl6mtUPXoX/o7sNwtQ0KIMzox0KP/yrarrMEGX3/hxlliBBdydsKIazbKO+4nbGkU+or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6anHS+4HYoFwnlMkItf6KuStCU15z//tvx0qOQSj0AvCC6b7J2IUf+hiTqne5Sv7FfLL0swADCuHpCdrce72ppIVWOg0S0vZ/or9YwuxhX7vku/soFXaThdLkjVpRZCi4nOiY7/p7Frx7GGC6G+nYBSS08nx5MBA3CpEX/V4v8rzDwu+553yydFcLzRLEwHz+l6vE4G1fTlC4bOmthoynsgctqgfcDrQ==

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