OFF (file format)
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. [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
External links
This article is issued from
Wikipedia.
The text is licensed under Creative Commons - Attribution - Sharealike.
Additional terms may apply for the media files.