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
- compute a Bounding Volume Hierarchy (BVH) to perform
isInside()
- triangles of the mesh that are intersected by the moving box are red
Open MniOBJ file
ooking for MNI OBJ sample files?
Download this one