OFF (file format)

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
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[edit]

  • 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)
    • Optional face color information can follow the vertex list

Example[edit]

OFF
# cube.off
# A cube
 
8 6 12
 1.0  0.0 1.4142
 0.0  1.0 1.4142
-1.0  0.0 1.4142
 0.0 -1.0 1.4142
 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  255 0 0 #red
4  7 4 0 3  0 255 0 #green
4  4 5 1 0  0 0 255 #blue
4  5 6 2 1  0 255 0 
4  3 2 6 7  0 0 255
4  6 5 4 7  255 0 0

See also[edit]

References[edit]

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

External links[edit]