// defining geometry var triangleGeometry = new THREE.geometry(); // verticles triangleGeometry.verticle.push( new THREE.Vector3( 1, 1, 0 )); triangleGeometry.verticle.push( new THREE.Vector3( 3, 1, 0 )); triangleGeometry.verticle.push( new THREE.Vector3( 3, 3, 0 )); // face triangleGeometry.faces.push( new THREE.Face3( 0, 1, 2) );
var x = radius * Math.cos(angle) + location.x; var y = radius * Math.sin(angle) + location.y;
var sphereMaterial = new THREE.MeshLamberMaterial(); sphereMaterial.color.r = 1.0; sphereMaterial.color.g = 1.0; sphereMaterial.color.b = 0.5;