Ribbon.js 484 B

123456789101112131415161718192021222324
  1. /**
  2. * @author alteredq / http://alteredqualia.com/
  3. */
  4. THREE.Ribbon = function ( geometry, material ) {
  5. THREE.Object3D.call( this );
  6. this.geometry = geometry;
  7. this.material = material;
  8. };
  9. THREE.Ribbon.prototype = Object.create( THREE.Object3D.prototype );
  10. THREE.Ribbon.prototype.clone = function ( object ) {
  11. if ( object === undefined ) object = new THREE.Ribbon( this.geometry, this.material );
  12. THREE.Object3D.prototype.clone.call( this, object );
  13. return object;
  14. };
粤ICP备19079148号