Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Binary Polyhedron_3 I/O questions

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Binary Polyhedron_3 I/O questions


Chronological Thread 
  • From: Laurent Rineau <>
  • To:
  • Subject: Re: [cgal-discuss] Binary Polyhedron_3 I/O questions
  • Date: Wed, 19 Nov 2008 20:13:12 +0100

On Wednesday 19 November 2008 18:56:11 Joe C wrote:
> Thank Rui and Laurent for your reply.
>
> Laurent, I am working on Windows XP platform. I did use
> CGAL::set_binary_mode to create my binary file, otherwise I would not get a
> binary file. As you suggested, I also tried std::ios::binary when creating
> the binary file. But neither of them worked.

That way my only idea.

> My data should be O.K. because the ascii mode works fine.

I agree that your ascii file is OK. But your binary file is not.

> Any ideas why this curruption only happens in binary mode?

> Do I need to do some other stuff before reading in polyhedron
> binary file?

I am not sure that there is CGAL operator>>Polyhedron. Your binary file is
corrupted, but I cannot know why.

--
Laurent Rineau, PhD
Engineer at GeometryFactory
http://www.geometryfactory.com/



Archive powered by MHonArc 2.6.16.

Top of Page