12345678910111213141516171819202122232425262728293031 |
- /**
- * @author WestLangley / http://github.com/WestLangley
- *
- */
- THREE.LineSegments2 = function ( geometry, material ) {
- THREE.Mesh.call( this );
- this.type = 'LineSegments2';
- this.geometry = geometry !== undefined ? geometry : new THREE.LineSegmentsGeometry();
- this.material = material !== undefined ? material : new THREE.LineMaterial( { color: Math.random() * 0xffffff } );
- };
- THREE.LineSegments2.prototype = Object.assign( Object.create( THREE.Mesh.prototype ), {
- constructor: THREE.LineSegments2,
- isLineSegments2: true,
- copy: function ( source ) {
- // todo
- return this;
- }
- } );
|