planeSize = 50; var geometry = new THREE.CubeGeometry(planeSize, 1, planeSize, 1, 1, 1); var material = new THREE.MeshBasicMaterial({color: 0xffffff}); var mesh = new THREE.Mesh(geometry, material); mesh.position.y = -.5; scene.add(mesh); return mesh; } ();
var geometry = new THREE.SphereGeometry(1, 10, 10); var material = new THREE.MeshBasicMaterial({color: color || 0x00000, wireframe: true}); var mesh = new THREE.Mesh(geometry, material); mesh.position.y = y; mesh.isSphere = true; scene.add(mesh); mesh.name = name; return mesh; };