src/mesh.js
/**
   * Given a set of locations from the currently-active shader, draw this mesh
   * @param {Object} locations A hash of locations by name
   * @param {String} mode (optional) The draw mode
   *                      Either MODE_TRIANGLES or MODE_LINES
   * @return {void}
   */
Given a set of locations from the currently-active shader, draw this mesh
@param {Object} locations A hash of locations by name
@param {String} mode (optional) The draw mode
Either MODE_TRIANGLES or MODE_LINES
@return {void}
Given a set of locations from the currently - active shader draw this mesh @param { Object } locations A hash of locations by name @param { String } mode ( optional ) The draw mode Either MODE_TRIANGLES or MODE_LINES @return { void }
draw(locations, mode) {
    mode = mode || MODE_TRIANGLES;
    this.attributes.draw(locations);
    if(mode === MODE_TRIANGLES) {
      this.faces.draw();
    } else if (mode === MODE_LINES) {
      this.lines.draw();
    }
  }
draw ( locations , mode ) { mode = mode || MODE_TRIANGLES ; this . attributes . draw ( locations ) ; if ( mode === MODE_TRIANGLES ) { this . faces . draw ( ) ; } else if ( mode === MODE_LINES ) { this . lines . draw ( ) ; } }
Given a set of locations from the currently-active shader, draw this mesh
 @param {Object} locations A hash of locations by name
 @param {String} mode (optional) The draw mode
                      Either MODE_TRIANGLES or MODE_LINES
 @return {void}
Given a set of locations from the currently - active shader draw this mesh @param { Object } locations A hash of locations by name @param { String } mode ( optional ) The draw mode Either MODE_TRIANGLES or MODE_LINES @return { void }