sirlink99 56 Practically a Master Poster

Hello everyone,

I am trying to write an object loader in c++. Currently, I have a file that is made up of many sub objects and I am having a little difficulty figuring out how to process the data.

First of all, here is an example of part of the file

o shape_brow_Plane.030
v 3.719171 7.430269 -0.000989
v 3.719171 7.366541 -0.000989
v 3.655808 7.366541 -0.000989
v 3.655808 7.430269 -0.000989
v 3.687490 7.361845 -0.000989
v 3.729859 7.398441 -0.000989
v 3.687490 7.435111 -0.000989
v 3.645120 7.398441 -0.000989
l 28 31
l 29 31
l 27 32
l 28 32
l 27 33
l 30 33
l 29 34
l 30 34
o shape_nose_Plane.029
v 4.047793 6.746455 -0.000989
v 4.049577 6.631922 -0.000989
v 3.956243 6.631922 -0.000989
v 3.958028 6.746455 -0.000989
v 4.002910 6.616178 -0.000989
v 4.065321 6.678942 -0.000989
v 3.940499 6.678942 -0.000989
v 3.987510 6.801841 -0.000989
v 4.018311 6.801841 -0.000989
v 4.002910 6.808174 -0.000989
l 36 39
l 37 39
l 35 40
l 36 40
l 37 41
l 38 41
l 38 42
l 35 43
l 42 44
l 43 44

later on it also uses the usual vt and vn and f as well.
First of all, I am wondering what the extra numbers after the vertex co-ordinates are. Are they sub-faces for the object?
Second, I am wondering if vertex co-ordinates are globally maintained, or are they separate for each object.

I current have a loop that iterates through all of the v, vt, vn. However, I have a feeling I will need to change how the loop works in general. Any help is appreciated.

Thank you for your time and help.