12345678910111213141516171819202122232425262728 |
- /**
- * @author mr.doob / http://mrdoob.com/
- */
- THREE.Line = function ( geometry, material, type ) {
- THREE.Object3D.call( this );
- this.geometry = geometry;
- this.material = ( material !== undefined ) ? material : new THREE.LineBasicMaterial( { color: Math.random() * 0xffffff } );
- this.type = ( type !== undefined ) ? type : THREE.LineStrip;
- if ( this.geometry ) {
- if ( ! this.geometry.boundingSphere ) {
- this.geometry.computeBoundingSphere();
- }
- }
- };
- THREE.LineStrip = 0;
- THREE.LinePieces = 1;
- THREE.Line.prototype = Object.create( THREE.Object3D.prototype );
|