WireframeGeometry2.js 742 B

123456789101112131415161718192021
  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/#manual/en/introduction/Installation." );
  2. THREE.WireframeGeometry2 = function ( geometry ) {
  3. THREE.LineSegmentsGeometry.call( this );
  4. this.type = 'WireframeGeometry2';
  5. this.fromWireframeGeometry( new THREE.WireframeGeometry( geometry ) );
  6. // set colors, maybe
  7. };
  8. THREE.WireframeGeometry2.prototype = Object.assign( Object.create( THREE.LineSegmentsGeometry.prototype ), {
  9. constructor: THREE.WireframeGeometry2,
  10. isWireframeGeometry2: true
  11. } );