WireframeGeometry2.js 483 B

123456789101112131415161718192021222324
  1. /**
  2. * @author WestLangley / http://github.com/WestLangley
  3. *
  4. */
  5. THREE.WireframeGeometry2 = function ( geometry ) {
  6. THREE.LineSegmentsGeometry.call( this );
  7. this.type = 'WireframeGeometry2';
  8. this.fromWireframeGeometry( new THREE.WireframeGeometry( geometry ) );
  9. // set colors, maybe
  10. };
  11. THREE.WireframeGeometry2.prototype = Object.assign( Object.create( THREE.LineSegmentsGeometry.prototype ), {
  12. constructor: THREE.WireframeGeometry2,
  13. isWireframeGeometry2: true
  14. } );