code: function (array) {
          var value;
          var ArrayConstructor = this.vertexCount > 0xffff
              ? vendor.Uint32Array : vendor.Uint16Array;
          // Convert 2d array to flat
          if (array[0] && (array[0].length)) {
              var n = 0;
              var size = 3;
  
              value = new ArrayConstructor(array.length * size);
              for (var i = 0; i < array.length; i++) {
                  for (var j = 0; j < size; j++) {
                      value[n++] = array[i][j];
                  }
              }
          }
          else {
              value = new ArrayConstructor(array);
          }
  
          this.indices = value;
      }
docs: Initialize indices from an array.
  @param {Array} array