WireframeGeometry2.js 694 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. copy: function ( /* source */ ) {
  19. // todo
  20. return this;
  21. }
  22. } );
  23. export { WireframeGeometry2 };