src/mesh.js
/**
   * Calculate the center of the bounding box.
   * @param  {Number} coordAttribute Index of the attribute represention vertex position.
   * @return {mixed}                 A vector of the same size as the position attribute,
   *                                 representing the center of the bounding box.
   */
Calculate the center of the bounding box.
@param  {Number} coordAttribute Index of the attribute represention vertex position.
@return {mixed}                 A vector of the same size as the position attribute,
representing the center of the bounding box.
Calculate the center of the bounding box . @param { Number } coordAttribute Index of the attribute represention vertex position . @return { mixed } A vector of the same size as the position attribute representing the center of the bounding box .
boundingBoxCenter(coordAttribute) {
    if(!this.bounds) {
      this.boundingBox(coordAttribute);
    }
    return this.bounds.max.map(function(e, i) {
      return (e - this.bounds.min[i]) / 2;
    }.bind(this));
  }
boundingBoxCenter ( coordAttribute ) { if ( ! this . bounds ) { this . boundingBox ( coordAttribute ) ; } return this . bounds . max . map ( function ( e , i ) { return ( e - this . bounds . min [ i ] ) / 2 ; } . bind ( this ) ) ; }
Calculate the center of the bounding box.
Calculate the center of the bounding box .