This does the following :
- open a local MNI OBJ file, using
pixpipe.FileToArrayBufferReader
- Set the metadata
readAsText
of the pixpipe.FileToArrayBufferReader
to true
- redirect the file buffer into a
pixpipe.MniObjDecoder
to extract mesh data
- get the output as a generique
pixpipe.Mesh3D
object
- display the mesh using ThreeJS
Open MniOBJ file
Looking for MNI OBJ sample files?
Look here