Samiksha Jaiswal (Editor)

OFF (file format)

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Filename extension
  
.off

Type of format
  
3D model format

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

Contents

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 -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

    References

    OFF (file format) Wikipedia