Files
tinyobjloader/python/howto.py
Olivier fcad68bf2d update
2015-10-21 03:23:06 +02:00

10 lines
206 B
Python

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