Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] OFF file reading problem

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] OFF file reading problem


Chronological Thread 
  • From: Bertrand Pellenard <>
  • To:
  • Subject: Re: [cgal-discuss] OFF file reading problem
  • Date: Thu, 8 Mar 2012 23:23:47 +0100 (CET)

Hello,

first, the number of facets is not correct: you say 7 on the first line but
there are only 6 facets.
second, the indices of vertices (when you define facets) are from 0 to
(number of vertices - 1): so -1 is not correct.

Bertrand


----- Mail original -----
> De: "Helmi Ben Hmida"
> <>
> À:
>
> Envoyé: Jeudi 8 Mars 2012 23:14:53
> Objet: [cgal-discuss] OFF file reading problem
> Hello
> I´m generating off files from an IFC file where I´m respecting the off
> form. Althought this, while reading the it to convert it to a
> polygone,
> it´s always an empty polygone.
> This is an example of the off file
> Please, do any one have an idea why I´m not getting the Polyhedron.
>
> Thanks in advance
>
> OFF
> #
> #Oid806_IfcWall_Wand__Mauerziegel_d_17_5_cm__i.OFF
> #
> 24 7 24
> 19.454456 9.214429 9.195417
> 19.454456 9.214429 6
> 19.629456 9.214429 6
> 19.629456 9.214429 9.195417
> 19.629456 9.214429 9.195417
> 19.629456 9.214429 6
> 19.629456 13.049429 6
> 19.629456 13.049429 8.724564
> 19.629456 13.049429 8.724564
> 19.629456 13.049429 6
> 19.454456 13.049429 6
> 19.454456 13.049429 8.724564
> 19.454456 13.049429 8.724564
> 19.454456 13.049429 6
> 19.454456 9.214429 6
> 19.454456 9.214429 9.195417
> 19.454456 9.214429 6
> 19.454456 13.049429 6
> 19.629456 13.049429 6
> 19.629456 9.214429 6
> 19.629456 9.214429 9.195417
> 19.629456 13.049429 8.724564
> 19.454456 13.049429 8.724564
> 19.454456 9.214429 9.195417
> 4 0 1 2 3
> 5 -1 4 5 6 7
> 5 -1 8 9 10 11
> 5 -1 12 13 14 15
> 5 -1 16 17 18 19
> 5 -1 20 21 22 23
>
> --
> 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