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: Helmi Ben Hmida <>
  • To:
  • Cc: Nicholas Mario Wardhana <>, ,
  • Subject: Re: [cgal-discuss] OFF file reading problem
  • Date: Fri, 09 Mar 2012 10:33:12 +0100

Hello again,
Thanks for your reactions to my mail. I ll try to put u in the big picture. Theses off files are generated from a VRML file containing the set of elements composing a scene.
I´´m creating a small parser taking a vrml file as input and generating a set of off files as output correspondinf to the differents geometries existing inside.
Unfortuantely, there arealso duplicates points, but is it here the problem, since even the corrected OFF resent to me does not correspond to a Polydehron.

PS: The form is not always a cube, but i´m sure it´s a closed one.
PS: Please find one element from the vrml file (if u d like all the vrml file, i can provide it to you)
Best

Thanks in adavance

DEF Oid806_IfcWall_Wand__Mauerziegel_d_17_5_cm__i
Shape
{
appearance Appearance
{
material Material
{
diffuseColor 0.8 0.8 0.8
} # Material
} # Appearance
geometry IndexedFaceSet
{
ccw TRUE
convex TRUE
solid TRUE
coordIndex
[
0 1 2 3 -1,
4 5 6 7 -1,
8 9 10 11 -1,
12 13 14 15 -1,
16 17 18 19 -1,
20 21 22 23 -1
] # coordIndex
coord Coordinate
{
point
[
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
] # Point
} # Coordinate
normal Normal
{
vector
[
-0 -1 0,
-0 -1 0,
-0 -1 0,
-0 -1 0,
1 -0 -0,
1 -0 -0,
1 -0 -0,
1 -0 -0,
0 1 0,
0 1 0,
0 1 0,
0 1 0,
-1 0 0,
-1 0 0,
-1 0 0,
-1 0 0,
0 0 -1,
0 0 -1,
0 0 -1,
0 0 -1,
0 0.121862767485053 0.992546959040671,
0 0.121862767485053 0.992546959040671,
0 0.121862767485053 0.992546959040671,
0 0.121862767485053 0.992546959040671
] # Vector
} # Normals
} # Geometry
} # Shape


Am 09.03.2012 00:01, schrieb Nicholas Mario Wardhana:
On 9 March 2012 06:49, Helmi Ben Hmida
<>
wrote:
Hello Again,
U re right, but, it did not resolve the problem.
Still empty polyderon !!!
Do any one know how o fix this please


This is the correct off

OFF
#
#Oid806_IfcWall_Wand__Mauerziegel_d_17_5_cm__i.OFF
#
24 6 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
4 4 5 6 7
4 8 9 10 11
4 12 13 14 15
4 16 17 18 19
4 20 21 22 23

Hi Helmi,

I am not sure about this, but while I understand that you want to
create a cube with each face being defined as a square (unlike your
previous OFF file, the new one can be successfully loaded to Meshlab,
which means this is a valid OFF file), this causes your file to
contain duplicate vertices. I am wondering if anybody can clarify
whether Polyhedron_3 allows duplicate vertices?

Also, if you receive any error message, it might be helpful to put it here.

Best regards,
Nicholas





Archive powered by MHonArc 2.6.16.

Top of Page