Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Problem with loading OFF file

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Problem with loading OFF file


Chronological Thread 
  • From: Koutsokeras Miltiadis <>
  • To:
  • Subject: Re: [cgal-discuss] Problem with loading OFF file
  • Date: Wed, 18 Apr 2007 12:02:12 +0300

Peter Hachenberger wrote:
Hi Khoa,

OFF interface of Polyhedron_3 is your way to go. Can you send me a
non-working file. Then I can tell you what is wrong and probably also how you can come around the problem.

Peter

On Wed, 2007-04-18 at 01:16 +0700, Nguyen Tan Khoa wrote:
Dear all,

I'm implementing an algorithm on polygonal mesh. I managed to load some object from OFF file into an Polyhedron_3 object. However, there are cases that I can't load the model from the file. I tried with the example from CGAL package but they don't work also. Is there any other way that I can manage to load the OFF into an Polyhedron_3 object myself?

Bests,
Khoa.

OFF file input has problems under Windows OSes. If the file is saved with Windows line endings(CR LF) then the OFF scanner fails to load it properly.
If you are a Windows user make sure you don't open-save the files with notepad, use a third party editor that recognizes the format of line ending.

--
Koutsokeras Miltiadis

Computational Intelligence Laboratory (http://www.iit.demokritos.gr/cil/)
Institute of Informatics and Telecommunications
National Center for Scientific Research "Demokritos"
P.O. BOX 60228
GR-153 10 Agia Paraskevi, Athens, Greece.




Archive powered by MHonArc 2.6.16.

Top of Page