Line.js 440 B

1234567891011121314151617181920
  1. /**
  2. * @author mr.doob / http://mrdoob.com/
  3. */
  4. THREE.Line = function ( geometry, materials, type ) {
  5. THREE.Object3D.call( this );
  6. this.geometry = geometry;
  7. this.materials = materials instanceof Array ? materials : [ materials ];
  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;
粤ICP备19079148号