Geometry2.js 484 B

123456789101112131415161718
  1. /**
  2. * @author mrdoob / http://mrdoob.com/
  3. */
  4. THREE.Geometry2 = function ( size ) {
  5. THREE.BufferGeometry.call( this );
  6. this.vertices = this.addAttribute( 'position', Float32Array, size, 3 ).array;
  7. this.normals = this.addAttribute( 'normal', Float32Array, size, 3 ).array;
  8. this.uvs = this.addAttribute( 'uv', Float32Array, size, 2 ).array;
  9. this.boundingBox = null;
  10. this.boundingSphere = null;
  11. };
  12. THREE.Geometry2.prototype = Object.create( THREE.BufferGeometry.prototype );
粤ICP备19079148号