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: Peter Hachenberger <>
  • To:
  • Subject: Re: [cgal-discuss] Problem with loading OFF file
  • Date: Wed, 25 Apr 2007 12:11:01 +0200

Hi Khoa,

the file seems to have several problems. One problem that
I identified is empty facets. For instance facet number 107
reference the vertices

40.470001 43.279999 0.990000
40.470001 43.279999 -0.170000
40.470001 43.279999 0.390000

All of them lie on a single line. That's problematic to
handle when you want to create a polyhedron.

I still try to figure out other problems with your file. I have some
small program that helps handling such problems, but it can't cope with
your file. So i am upgrading it at the moment.

Peter

On Wed, 2007-04-18 at 15:24 +0700, Khoa Nguyen Tan wrote:
> Hi Peter,
>
> Thanks for your fast reply. The attachment is one of the object that
> I can't load: I failed with my code and the example programs come
> together with CGAL package also can't read this file too.
>
> Best regards,
> Khoa.
>
> On Apr 18, 2007, at 3:14 PM, 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.
> >
> > --
> > You are currently subscribed to cgal-discuss.
> > To unsubscribe or access the archives, go to
> > https://lists-sop.inria.fr/wws/info/cgal-discuss
>




Archive powered by MHonArc 2.6.16.

Top of Page