Initial commit
This commit is contained in:
20
HTML/ThreeJS/node_modules/three/examples/js/lines/Line2.js
generated
vendored
Normal file
20
HTML/ThreeJS/node_modules/three/examples/js/lines/Line2.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
( function () {
|
||||
|
||||
class Line2 extends THREE.LineSegments2 {
|
||||
|
||||
constructor( geometry = new THREE.LineGeometry(), material = new THREE.LineMaterial( {
|
||||
color: Math.random() * 0xffffff
|
||||
} ) ) {
|
||||
|
||||
super( geometry, material );
|
||||
this.type = 'Line2';
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Line2.prototype.isLine2 = true;
|
||||
|
||||
THREE.Line2 = Line2;
|
||||
|
||||
} )();
|
||||
Reference in New Issue
Block a user