Line.js 391 B

1234567891011121314151617181920
  1. /**
  2. * @author mr.doob / http://mrdoob.com/
  3. */
  4. THREE.Line = function ( geometry, material, type ) {
  5. THREE.Object3D.call( this );
  6. this.geometry = geometry;
  7. this.material = material;
  8. this.type = ( type != undefined ) ? type : THREE.LineStrip;
  9. };
  10. THREE.LineStrip = 0;
  11. THREE.LinePieces = 1;
  12. THREE.Line.prototype = new THREE.Object3D();
  13. THREE.Line.prototype.constructor = THREE.Line;