Stripe File Format
Stripe reads .obj file
and constructs a .objf file. A complete description of the .obj format
by Wavefront can be found at avalon.viewpoint.com
or cica.indiana.edu.
This page will discuss the format of the .objf file whose format is very
similar to the .obj file format.
File Structure
Vertex data
-
geometric vertices (v)
-
texture vertices (vt)
-
vertex normals (vn)
** Vertex, textures, and normal list are all ordered sequentially
starting with 1
Elements
-
triangle strip (t)
-
triangle strip continuation (q)
Example:
v 0.000000 0.000000 1.000000
# Vertex 1
v 1.000000 1.000000 0.000000
# Vertex 2
v 2.000000 0.000000 0.000000
# Vertex 3
v 3.000000 1.000000 0.000000
# Vertex 4
v 4.000000 0.000000 0.000000
# Vertex 5
v 3.000000 -1.000000 0.000000
# Vertex 6
v 4.000000 -1.000000 0.000000
# Vertex 7
v 2.000000 2.000000 0.000000
# Vertex 8
v 3.000000 2.000000 0.000000
# Vertex 9
v 3.000000 3.000000 0.000000
# Vertex 10
t 10 9 8 #
Start of triangle strip 1
q 4
# Continuation of triangle strip 1
q 2
# Continuation of triangle strip 1
q 3 1
# Continuation of triangle strip 1
t 3 4 3 5 # Start
of triangle strip 2
q 6 7
# Continuation of triangle strip 2
Webpage by Elvir Azanli - 1998