dist/ingress-model-viewer.js
/**
   * Construct the Mesh from the given file
   * @param  {context} gl           WebGL context
   * @param  {ArrayBuffer} arraybuf ArrayBuffer representing the entire .obj file
   */
Construct the Mesh from the given file
@param  {context} gl           WebGL context
@param  {ArrayBuffer} arraybuf ArrayBuffer representing the entire .obj file
Construct the Mesh from the given file @param { context } gl WebGL context @param { ArrayBuffer } arraybuf ArrayBuffer representing the entire . obj file
function FileMesh(gl, arraybuf) {
    _classCallCheck(this, FileMesh);
    var jd = new _javaDeserializer2.default(arraybuf);
    var blocks = jd.getContents();
    var values = blocks[0].elements;
    var attributeData = blocks[3];
    var spec = parseAttributes(attributeData);
    var faces = new _glIndex2.default(gl, blocks[1].elements, gl.TRIANGLES);
    var attributes = new _glAttribute2.default(gl, spec, values);
    var lines = new _glIndex2.default(gl, blocks[2].elements, gl.LINES);
    return _possibleConstructorReturn(this, (FileMesh.__proto__ || Object.getPrototypeOf(FileMesh)).call(this, gl, attributes, faces, lines));
  }
function FileMesh ( gl , arraybuf ) { _classCallCheck ( this , FileMesh ) ; var jd = new _javaDeserializer2 . default ( arraybuf ) ; var blocks = jd . getContents ( ) ; var values = blocks [ 0 ] . elements ; var attributeData = blocks [ 3 ] ; var spec = parseAttributes ( attributeData ) ; var faces = new _glIndex2 . default ( gl , blocks [ 1 ] . elements , gl . TRIANGLES ) ; var attributes = new _glAttribute2 . default ( gl , spec , values ) ; var lines = new _glIndex2 . default ( gl , blocks [ 2 ] . elements , gl . LINES ) ; return _possibleConstructorReturn ( this , ( FileMesh . __proto__ || Object . getPrototypeOf ( FileMesh ) ) . call ( this , gl , attributes , faces , lines ) ) ; }
Construct the Mesh from the given file
 @param  {context} gl           WebGL context
 @param  {ArrayBuffer} arraybuf ArrayBuffer representing the entire .obj file
Construct the Mesh from the given file @param { context } gl WebGL context @param { ArrayBuffer } arraybuf ArrayBuffer representing the entire . obj file
// should be Float32Array // should be ArrayBuffer // array of VertexAttributes // should be Uint16Array // should be Uint16Array