Files
tinyobjloader/python/howto.py
2014-11-16 23:39:20 +01:00

12 lines
194 B
Python

import tinyobjloader as tol
import json
model = tol.LoadObj("cornell_box.obj")
#print(model["shapes"], model["materials"])
print( json.dumps(model, indent=4) )
#see cornell_box_output.json