0
0

Line2.js 442 B

12345678910111213141516171819
  1. import { LineSegments2 } from '../lines/LineSegments2.js';
  2. import { LineGeometry } from '../lines/LineGeometry.js';
  3. import { LineMaterial } from '../lines/LineMaterial.js';
  4. class Line2 extends LineSegments2 {
  5. constructor( geometry = new LineGeometry(), material = new LineMaterial( { color: Math.random() * 0xffffff } ) ) {
  6. super( geometry, material );
  7. this.type = 'Line2';
  8. }
  9. }
  10. Line2.prototype.isLine2 = true;
  11. export { Line2 };