3D-Demo/jsm/lines/WireframeGeometry2.js

25 lines
441 B
JavaScript
Raw Normal View History

2022-10-14 16:50:42 +08:00
import {
WireframeGeometry
} from 'three';
import { LineSegmentsGeometry } from '../lines/LineSegmentsGeometry.js';
class WireframeGeometry2 extends LineSegmentsGeometry {
constructor( geometry ) {
super();
this.type = 'WireframeGeometry2';
this.fromWireframeGeometry( new WireframeGeometry( geometry ) );
// set colors, maybe
}
}
WireframeGeometry2.prototype.isWireframeGeometry2 = true;
export { WireframeGeometry2 };