<HTML>
<HEAD>
<TITLE>A Sample Geomview Data File</TITLE>
<!-- Copyright (c) 1996 by The Geometry Center. All Rights Reserved. -->
</HEAD>
<BODY BGCOLOR="FFFFFF">
<!-- *Navigation-Links -->
<B>Next:</B> <A HREF="connecting.html"><I>Connecting Geomview to Other Software</I></A><BR>
<B>Up:</B> <A HREF="using.html"><I>Using Geomview</I></A><BR>
<HR>
<p>

<!-- *Begin-Document-Body -->
<CENTER>
<H1>A Sample Geomview Data File</H1>
</CENTER>
<TABLE BORDER=0 WIDTH=100%>
<TD ALIGN=LEFT>
<PRE>
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
</PRE>

<TD ALIGN=LEFT>
Here is a simple Geomview data file describing a
hexagonal bar.  It starts with the keyword <B>OFF</B>, 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.
<p>
Then comes the list of the coordinates of the 12 vertices,
one vertex per line.
<p>
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).
</TABLE>
<!-- *End-Document-Body -->
<p>

<!-- *Navigation-Links -->
<HR>
<B>Next:</B> <A HREF="connecting.html"><I>Connecting Geomview to Other Software</I></A><BR>
<B>Up:</B> <A HREF="using.html"><I>Using Geomview</I></A><BR>

<!-- *GC-Common-Footer -->
<HR>
<NOBR><A HREF="/"><IMG SRC="/pix/home.gif" ALT="[HOME]" ALIGN=MIDDLE></A>
<I>The Geometry Center Home Page</I></NOBR>
<p>
Comments to:
<A HREF="/admin/mail/webmaster.html">webmaster@geom.umn.edu</A><BR>
Created:  Sep 20 1996 --- 
<!-- hhmts start -->
Last modified: Dec 18 1996
<!-- hhmts end -->
</BODY>
</HTML>
