WireframeGeometry2.js 419 B

123456789101112131415161718192021222324
  1. import {
  2. WireframeGeometry
  3. } from 'three';
  4. import { LineSegmentsGeometry } from '../lines/LineSegmentsGeometry.js';
  5. class WireframeGeometry2 extends LineSegmentsGeometry {
  6. constructor( geometry ) {
  7. super();
  8. this.isWireframeGeometry2 = true;
  9. this.type = 'WireframeGeometry2';
  10. this.fromWireframeGeometry( new WireframeGeometry( geometry ) );
  11. // set colors, maybe
  12. }
  13. }
  14. export { WireframeGeometry2 };