add Potree (version 1.8)
This commit is contained in:
24
PointCloudWeb.Web/public/Potree/libs/three.js/lines/Line2.js
Normal file
24
PointCloudWeb.Web/public/Potree/libs/three.js/lines/Line2.js
Normal file
@@ -0,0 +1,24 @@
|
||||
import { LineSegments2 } from '../lines/LineSegments2.js';
|
||||
import { LineGeometry } from '../lines/LineGeometry.js';
|
||||
import { LineMaterial } from '../lines/LineMaterial.js';
|
||||
|
||||
var Line2 = function ( geometry, material ) {
|
||||
|
||||
if ( geometry === undefined ) geometry = new LineGeometry();
|
||||
if ( material === undefined ) material = new LineMaterial( { color: Math.random() * 0xffffff } );
|
||||
|
||||
LineSegments2.call( this, geometry, material );
|
||||
|
||||
this.type = 'Line2';
|
||||
|
||||
};
|
||||
|
||||
Line2.prototype = Object.assign( Object.create( LineSegments2.prototype ), {
|
||||
|
||||
constructor: Line2,
|
||||
|
||||
isLine2: true
|
||||
|
||||
} );
|
||||
|
||||
export { Line2 };
|
||||
Reference in New Issue
Block a user