2
0

WireframeGeometry2.js 824 B

12345678910111213141516171819202122232425
  1. console.warn( "THREE.WireframeGeometry2: As part of the transition to ES6 Modules, the files in 'examples/js' were deprecated in May 2020 (r117) and will be deleted in December 2020 (r124). You can find more information about developing using ES6 Modules in https://threejs.org/docs/index.html#manual/en/introduction/Import-via-modules." );
  2. /**
  3. * @author WestLangley / http://github.com/WestLangley
  4. *
  5. */
  6. THREE.WireframeGeometry2 = function ( geometry ) {
  7. THREE.LineSegmentsGeometry.call( this );
  8. this.type = 'WireframeGeometry2';
  9. this.fromWireframeGeometry( new THREE.WireframeGeometry( geometry ) );
  10. // set colors, maybe
  11. };
  12. THREE.WireframeGeometry2.prototype = Object.assign( Object.create( THREE.LineSegmentsGeometry.prototype ), {
  13. constructor: THREE.WireframeGeometry2,
  14. isWireframeGeometry2: true
  15. } );