Template:Team:UC Davis/MutantWidget
From 2011.igem.org
(Difference between revisions)
Line 534: | Line 534: | ||
$container.append(renderer.domElement); | $container.append(renderer.domElement); | ||
var radius = 50, segments = 16, rings = 16; | var radius = 50, segments = 16, rings = 16; | ||
- | + | ||
sphere = new THREE.Mesh( | sphere = new THREE.Mesh( | ||
new THREE.SphereGeometry(radius, | new THREE.SphereGeometry(radius, | ||
Line 544: | Line 544: | ||
sphere.position.y = 50; | sphere.position.y = 50; | ||
sphere.position.z = 50; | sphere.position.z = 50; | ||
- | + | ||
plot_mesh = new THREE.Mesh( | plot_mesh = new THREE.Mesh( | ||
Line 613: | Line 613: | ||
origin_object.addChild(yaxis); | origin_object.addChild(yaxis); | ||
origin_object.addChild(zaxis); | origin_object.addChild(zaxis); | ||
+ | origin_object.addChild(sphere); | ||
scene.addChild(origin_camera); | scene.addChild(origin_camera); | ||
renderer.render(scene, camera); | renderer.render(scene, camera); |
Revision as of 05:48, 25 September 2011