OFF (file format)

From Wikipedia, the free encyclopedia
Jump to: navigation, search
OFF geometry format
Filename extension .off
Type of format 3D model format

OFF is a geometry definition file format containing the description of the composing polygons of the 3D object.

Composition[edit]

  • first line: number of points, number of faces, number of lines
  • list of points: X, Y and Z coordinates
  • list of faces: number of points, followed by the sequence number of the composing points (indexed from zero)

Example[edit]

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  -1.0
 0.0   1.0  -1.0
-1.0   0.0  -1.0
 0.0  -1.0  -1.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