lib/toxi/geom/AxisAlignedCylinder.js
function(a,b,c) {
		var opts = {
			mesh: undefined,
			steps: 12,
			thetaOffset: 0
		};
		if(arguments.length == 1 && typeof arguments[0] == 'object'){ //options object
			for(var prop in arguments[0]){
				opts[prop] = arguments[0][prop];
			}
		} else if(arguments.length == 2){
			opts.steps = arguments[0];
			opts.thetaOffset = arguments[1];
		}
		var cone = new Cone(this.pos,this.getMajorAxis().getVector(), this.radius, this.radius, this.length);
		return cone.toMesh(opts.mesh,opts.steps,opts.thetaOffset,true,true);
	}
function(a,b,c) {
		var opts = {
			mesh: undefined,
			steps: 12,
			thetaOffset: 0
		};
		if(arguments.length == 1 && typeof arguments[0] == 'object'){ //options object
			for(var prop in arguments[0]){
				opts[prop] = arguments[0][prop];
			}
		} else if(arguments.length == 2){
			opts.steps = arguments[0];
			opts.thetaOffset = arguments[1];
		}
		var cone = new Cone(this.pos,this.getMajorAxis().getVector(), this.radius, this.radius, this.length);
		return cone.toMesh(opts.mesh,opts.steps,opts.thetaOffset,true,true);
	}
function ( a , b , c ) { var opts = { mesh : undefined , steps : 12 , thetaOffset : 0 } ; if ( arguments . length == 1 && typeof arguments [ 0 ] == 'object' ) { //options object for ( var prop in arguments [ 0 ] ) { opts [ prop ] = arguments [ 0 ] [ prop ] ; } } else if ( arguments . length == 2 ) { opts . steps = arguments [ 0 ] ; opts . thetaOffset = arguments [ 1 ] ; } var cone = new Cone ( this . pos , this . getMajorAxis ( ) . getVector ( ) , this . radius , this . radius , this . length ) ; return cone . toMesh ( opts . mesh , opts . steps , opts . thetaOffset , true , true ) ; }
Builds a TriangleMesh representation of the cylinder at a default
resolution 30 degrees.
@return mesh instance
Builds a TriangleMesh representation of the cylinder at a default resolution 30 degrees .