/** * @author alteredq / http://alteredqualia.com/ */ THREE.BufferGeometry = function () { this.id = THREE.GeometryCount ++; // GL buffers this.vertexIndexBuffer = null; this.vertexPositionBuffer = null; this.vertexNormalBuffer = null; this.vertexUvBuffer = null; this.vertexColorBuffer = null; // typed arrays (kept only if dynamic flag is set) this.vertexIndexArray = null; this.vertexPositionArray = null; this.vertexNormalArray = null; this.vertexUvArray = null; this.vertexColorArray = null; this.dynamic = false; // boundings this.boundingBox = null; this.boundingSphere = null; // for compatibility this.morphTargets = []; }; THREE.BufferGeometry.prototype = { constructor : THREE.BufferGeometry, // for compatibility computeBoundingBox: function () { }, // for compatibility computeBoundingSphere: function () { } };