WireframeGeometry2.js 441 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.type = 'WireframeGeometry2';
  9. this.fromWireframeGeometry( new WireframeGeometry( geometry ) );
  10. // set colors, maybe
  11. }
  12. }
  13. WireframeGeometry2.prototype.isWireframeGeometry2 = true;
  14. export { WireframeGeometry2 };