mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-21 10:56:01 +10:00
21 lines
439 B
JavaScript
21 lines
439 B
JavaScript
/**
|
|
* @author mr.doob / http://mrdoob.com/
|
|
*/
|
|
|
|
THREE.Line = function ( geometry, materials, type ) {
|
|
|
|
THREE.Object3D.call( this );
|
|
|
|
this.geometry = geometry;
|
|
this.materials = materials instanceof Array ? materials : [ materials ];
|
|
|
|
this.type = ( type != undefined ) ? type : THREE.LineStrip;
|
|
|
|
};
|
|
|
|
THREE.LineStrip = 0;
|
|
THREE.LinePieces = 1;
|
|
|
|
THREE.Line.prototype = new THREE.Object3D();
|
|
THREE.Line.prototype.constructor = THREE.Line;
|