LineSegments.js 479 B

123456789101112131415161718192021222324
  1. /**
  2. * @author mrdoob / http://mrdoob.com/
  3. */
  4. THREE.LineSegments = function ( geometry, material ) {
  5. THREE.Line.call( this, geometry, material );
  6. this.type = 'LineSegments';
  7. };
  8. THREE.LineSegments.prototype = Object.create( THREE.Line.prototype );
  9. THREE.LineSegments.prototype.constructor = THREE.LineSegments;
  10. THREE.LineSegments.prototype.clone = function () {
  11. var line = new THREE.LineSegments( this.geometry, this.material );
  12. line.copy( this );
  13. return line;
  14. };
粤ICP备19079148号