OFF 12 8 18 0 0.5 -0.8 9 0.5 -0.8 0 0.9 0 9 0.9 0 0 0.5 0.8 9 0.5 0.8 0 -0.5 0.8 9 -0.5 0.8 0 -0.9 0 9 -0.9 0 0 -0.5 -0.8 9 -0.5 -0.8 4 0 2 3 1 4 2 4 5 3 4 4 6 7 5 4 6 8 9 7 4 8 10 11 9 4 10 0 1 11 6 10 8 6 4 2 0 6 1 3 5 7 9 11 |
Here is a simple Geomview data file describing a
hexagonal bar. It starts with the keyword OFF, which
distinguishes the type of data in the file (Geomview knows
about several different kinds of file formats). The next
line specifies that this object has 12 vertices, 8 faces,
and 18 edges.
Then comes the list of the coordinates of the 12 vertices, one vertex per line. And finally the list of 8 faces, one per line. Each face line starts with a number indicating how many vertices the face contains, and then lists the indices of those vertices. Notice that six of this object's faces have 4 vertices (these are the sides of the bar), and two of them have 6 vertices (these are the ends). |

Comments to:
webmaster@geom.umn.edu

Created: Sep 20 1996 ---
Last modified: Dec 18 1996