objParse
Node Wavefront OBJ parsing for multi-object files
Example Usage
fs = parseObj = ; ;
Data
Pass in a read stream, on finish
event, callback is returned with an object array.
Each object in the object array has an array of:
v
vertex positionsvn
vertex normalsvt
vertex UVsf
face position indicesfn
face normal indicesft
face texture coordinate indices
obj[n].v[m]
will get the mth vertex of the nth object as a vector of x, y, and z coordinates.