Files
three.js/src/objects/Line.js
T
2011-02-26 10:52:35 +00:00

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;