code: function getGeometry(data) {
    if (data.attributes) {
      validateGeometryAttributes(data.attributes);
      if (data instanceof Geometry) {
        return data;
      } else {
        return new Geometry(data);
      }
    } else if (data.positions || data.POSITION) {
      validateGeometryAttributes(data);
      return new Geometry({
        attributes: data
      });
    }
    throw Error('Invalid mesh');
  }
docs: /*
  Convert mesh data into geometry
  @returns {Geometry} geometry