parse an obj file into the format that mesh-viewer understands