three#CylinderGeometry JavaScript Examples

The following examples show how to use three#CylinderGeometry. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: hud.js    From architect3d with MIT License 6 votes vote down vote up
makeCone(item) 
	{
		var coneGeo = new CylinderGeometry(5, 0, 10);
		var coneMat = new MeshBasicMaterial({color: this.getColor()});
		var cone = new Mesh(coneGeo, coneMat);
		cone.position.copy(this.rotateVector(item));
		cone.rotation.x = -Math.PI / 2.0;
		return cone;
	}