Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

[cgal-discuss] Problem with loading OFF file


Chronological Thread 
  • From: "BJStation BJ" <>
  • To:
  • Subject: [cgal-discuss] Problem with loading OFF file
  • Date: Mon, 20 Oct 2008 23:27:28 +0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=pucsK65TpoqxFnJe8hmTIpGi4zVofHdnb80BUQ3nHZ8y8LhRCxd+g5FAERRgd/eAfr gx2XNIB8miMmIQi85FBYtB4prSaaEYd7KFmdGK0TOhZ9DNFiJkDtFfDI97h2FNARNmy1 5wvLnw8r2oeYKQoSWyW+B3dojhhh1i2RZ9z+M=

Dear All:
 I want to create a polyhedron by using an .off file,
The example files in CGAL (subdivision_3  corner.off,...) can be the correct input to the following code: cin >> Polyhedron.
But this .off file created by myself (the attached file) doesn't work correctly, and I can't figure out where is the problem >"<
When I describe the facets in the file, is there any certain order?
Can anyone help me? Thank you very much.
             
                                                                                                                                                                           BJ 
 
 
OFF
9 14 0

200.500000 129.750000 0.000000
129.375000 213.750000 0.000000
228.875000 316.875000 0.000000
331.875000 252.500000 0.000000
297.875000 160.625000 0.000000
214.687500 223.312500 86.069984
214.687500 223.312500 -86.069984
263.375000 238.750000 72.937454
263.375000 238.750000 -72.937454

3 0 1 5
3 0 1 6
3 3 4 7
3 3 4 8
3 4 5 7
3 4 6 8
3 1 2 5
3 1 2 6
3 0 4 5
3 0 4 6
3 2 3 7
3 2 3 8
3 2 5 7
3 2 6 8



Archive powered by MHonArc 2.6.16.

Top of Page