Line2.js 326 B

1234567891011121314151617181920
  1. ( function () {
  2. class Line2 extends THREE.LineSegments2 {
  3. constructor( geometry = new THREE.LineGeometry(), material = new THREE.LineMaterial( {
  4. color: Math.random() * 0xffffff
  5. } ) ) {
  6. super( geometry, material );
  7. this.type = 'Line2';
  8. }
  9. }
  10. Line2.prototype.isLine2 = true;
  11. THREE.Line2 = Line2;
  12. } )();