OBJs and Extended-OBJs for CS184

OBJ* Files

For the purposes of this class, we are extending the basic OBJ format to include some powerful abstractions. OBJ* will be a strict superset of OBJ, thus for the purposes of this assignment OBJs and OBJ*s will be indistinguishable. You need to be concerned with the following commands for this project:
v x y Define a vertex at coordinates (x,y).
It is customary to have coordinates have a range of [-1, +1] in OBJ files.
f v1 ... vn Define a face with vertices v1 through vn
vi refers to the index of a vertex, where vertices are indexed from 1 in the order they appear in the file.
Thus an example OBJ for a rectangle should look something like the following:

# OBJ file:
v -0.5 0.5
v -0.5 -0.5
v 0.5 -0.5
v 0.5 0.5
f 1 2 3 4

More OBJ File specifications can be found here, various examples here, programs and sample files here and a MAN-page-like reference page by Martin Reddy here