OFF (file 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. [1]
Composition
- first line: number of vertices, number of faces, number of edges
- 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)
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
This article is issued from Wikipedia - version of the Wednesday, April 20, 2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.