Line2.js 316 B

12345678910111213141516171819
  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.isLine2 = true;
  8. this.type = 'Line2';
  9. }
  10. }
  11. THREE.Line2 = Line2;
  12. } )();