Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] Empty lines with output stream operator overloading for 3D triangulations
Chronological Thread
- From: Cedric Doucet <>
- To:
- Subject: Re: [cgal-discuss] Empty lines with output stream operator overloading for 3D triangulations
- Date: Tue, 29 Jul 2014 18:20:29 +0200 (CEST)
Hello,
could you tell me where I can find the implementation of << for
Triangulation_data_structure_3?
The number of empty line matches exactly one of the numbers written in the
file (maybe the nuber of edges of facets, I don't know).
Surprisingly, all seem to work fine in binary mode (reading and writing).
In ascii mode, I cannot read what was written by <<.
Best,
Cédric
----- Mail original -----
> De: "cdoucet"
> <>
> À:
>
> Envoyé: Mardi 29 Juillet 2014 12:52:40
> Objet: [cgal-discuss] Empty lines with output stream operator overloading
> for 3D triangulations
>
> Hello,
>
> I used 3D Delaunay triangulations with the following definitions:
> ------------------------------------------
> typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
> typedef CGAL::Triangulation_vertex_base_with_info_3<int, K> Vb;
> typedef CGAL::Triangulation_cell_base_with_info_3<CellInfo, K> Cb;
> typedef CGAL::Triangulation_data_structure_3<Vb,Cb> Tds;
> typedef CGAL::Delaunay_triangulation_3<K, Tds>
> Delaunay;
> ------------------------------------------
>
> In my code, I generate such a triangulation T and try to write it in a file
> :
> ------------------------------------------
> std::ofstream ofs;
> ofs.open(file,std::ios::out);
> CGAL::set_ascii_mode(ofs);
> ofs << T;
> ------------------------------------------
> where file if of type (char*).
>
> When I open the resulting file, data seem to be written correctly but they
> are followed by several empty lines (about 60,000).
>
> Is this normal?
>
> Thank you for your help!
>
> Cédric Doucet
>
>
>
> --
> View this message in context:
> http://cgal-discuss.949826.n4.nabble.com/Empty-lines-with-output-stream-operator-overloading-for-3D-triangulations-tp4659644.html
> Sent from the cgal-discuss mailing list archive at Nabble.com.
>
> --
> 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] Empty lines with output stream operator overloading for 3D triangulations, cdoucet, 07/29/2014
- Re: [cgal-discuss] Empty lines with output stream operator overloading for 3D triangulations, Cedric Doucet, 07/29/2014
Archive powered by MHonArc 2.6.18.