dist/bas.module.js
function ModelBufferGeometry(model, options) {
  BufferGeometry.call(this);

  /**
   * A reference to the geometry used to create this instance.
   * @type {THREE.Geometry}
   */
  this.modelGeometry = model;

  /**
   * Number of faces of the model.
   * @type {Number}
   */
  this.faceCount = this.modelGeometry.faces.length;

  /**
   * Number of vertices of the model.
   * @type {Number}
   */
  this.vertexCount = this.modelGeometry.vertices.length;

  options = options || {};
  options.computeCentroids && this.computeCentroids();

  this.bufferIndices();
  this.bufferPositions(options.localizeFaces);
}
function ModelBufferGeometry(model, options) {
  BufferGeometry.call(this);

  /**
   * A reference to the geometry used to create this instance.
   * @type {THREE.Geometry}
   */
  this.modelGeometry = model;

  /**
   * Number of faces of the model.
   * @type {Number}
   */
  this.faceCount = this.modelGeometry.faces.length;

  /**
   * Number of vertices of the model.
   * @type {Number}
   */
  this.vertexCount = this.modelGeometry.vertices.length;

  options = options || {};
  options.computeCentroids && this.computeCentroids();

  this.bufferIndices();
  this.bufferPositions(options.localizeFaces);
}
function ModelBufferGeometry ( model , options ) { BufferGeometry . call ( this ) ; /**
   * A reference to the geometry used to create this instance.
   * @type {THREE.Geometry}
   */ this . modelGeometry = model ; /**
   * Number of faces of the model.
   * @type {Number}
   */ this . faceCount = this . modelGeometry . faces . length ; /**
   * Number of vertices of the model.
   * @type {Number}
   */ this . vertexCount = this . modelGeometry . vertices . length ; options = options || { } ; options . computeCentroids && this . computeCentroids ( ) ; this . bufferIndices ( ) ; this . bufferPositions ( options . localizeFaces ) ; }
A THREE.BufferGeometry for animating individual faces of a THREE.Geometry.

@param {THREE.Geometry} model The THREE.Geometry to base this geometry on.
@param {Object=} options
@param {Boolean=} options.computeCentroids If true, a centroids will be computed for each face and stored in THREE.BAS.ModelBufferGeometry.centroids.
@param {Boolean=} options.localizeFaces If true, the positions for each face will be stored relative to the centroid. This is useful if you want to rotate or scale faces around their center.
@constructor
A THREE . BufferGeometry for animating individual faces of a THREE . Geometry .