Line2.js 433 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.isLine2 = true;
  8. this.type = 'Line2';
  9. }
  10. }
  11. export { Line2 };