WireframeGeometry2.js 626 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * @author WestLangley / http://github.com/WestLangley
  3. *
  4. */
  5. import {
  6. WireframeGeometry
  7. } from "../../../build/three.module.js";
  8. import { LineSegmentsGeometry } from "../lines/LineSegmentsGeometry.js";
  9. var WireframeGeometry2 = function ( geometry ) {
  10. LineSegmentsGeometry.call( this );
  11. this.type = 'WireframeGeometry2';
  12. this.fromWireframeGeometry( new WireframeGeometry( geometry ) );
  13. // set colors, maybe
  14. };
  15. WireframeGeometry2.prototype = Object.assign( Object.create( LineSegmentsGeometry.prototype ), {
  16. constructor: WireframeGeometry2,
  17. isWireframeGeometry2: true
  18. } );
  19. export { WireframeGeometry2 };