WireframeGeometry2.js 416 B

12345678910111213141516171819
  1. THREE.WireframeGeometry2 = function ( geometry ) {
  2. THREE.LineSegmentsGeometry.call( this );
  3. this.type = 'WireframeGeometry2';
  4. this.fromWireframeGeometry( new THREE.WireframeGeometry( geometry ) );
  5. // set colors, maybe
  6. };
  7. THREE.WireframeGeometry2.prototype = Object.assign( Object.create( THREE.LineSegmentsGeometry.prototype ), {
  8. constructor: THREE.WireframeGeometry2,
  9. isWireframeGeometry2: true
  10. } );