I have this task to convert a 3D-object from a .obj-file (using Blender) into a 2D-picture using matplotlib in python. Converting from 3D to 2D is done using matrices, so thats ok, but I dont know how to get the coordinates from the file. When I print the file's content, I get this:
# Blender v2.73 (sub 0) OBJ File: ''
# www.blender.org
mtllib test.mtl
o Cube
v 1.000000 -1.000000 -1.000000
v 1.000000 -1.000000 1.000000
v -1.000000 -1.000000 1.000000
v -1.000000 -1.000000 -1.000000
v 0.388735 1.108067 -2.206034
v 1.538758 0.520736 2.855389
v -0.570206 0.995216 0.054703
v -0.454593 3.815588 -1.404268
usemtl Material
s off
Can someone please help me? :)