OFF (file format)

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 128.141.207.20 (talk) at 16:23, 4 June 2017 (was not a cube). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

OFF geometry format
Filename extension
.off
Type of format3D model format

OFF (Object File Format) is a geometry definition file format containing the description of the composing polygons of the 3D object. [1]

Composition

  • first line: number of vertices, number of faces, number of edges (can be ignored)
  • list of vertices: X, Y and Z coordinates
  • list of faces: number of vertices, followed by the sequence number of the composing vertices (indexed from zero)
  • normal of the faces can be determined using the right-hand rule.

Example

OFF
#  cube.off
#  A cube

8 6 12
1.0   0.0   1.0
0.0   1.0   1.0
-1.0   0.0   1.0
0.0  -1.0   1.0
1.0   0.0  0.0
0.0   1.0  0.0
-1.0   0.0  0.0
0.0  -1.0  0.0
4  0 1 2 3  
4  7 4 0 3  
4  4 5 1 0  
4  5 6 2 1  
4  3 2 6 7  
4  6 5 4 7

References

  1. ^ "OFF file format (Princeton)".

External links