Template:Team:UC Davis/MutantWidget
From 2011.igem.org
(Difference between revisions)
Line 418: | Line 418: | ||
new THREE.Vector3(thisdatax[i%thisdatax.length], thisdatay[Math.floor(i/thisdatay.length)], thisdataz[i]) | new THREE.Vector3(thisdatax[i%thisdatax.length], thisdatay[Math.floor(i/thisdatay.length)], thisdataz[i]) | ||
); | ); | ||
+ | particles.vertices.push(particle); | ||
+ | |||
} | } | ||
Line 599: | Line 601: | ||
sphere.position.y = 50; | sphere.position.y = 50; | ||
sphere.position.z = 50; | sphere.position.z = 50; | ||
+ | var particleSystem = new THREE.ParticleSystem( | ||
+ | particles, | ||
+ | pMaterial); | ||
+ | // add it to the scene | ||
+ | scene.addChild(particleSystem); | ||
plot_mesh = new THREE.Mesh( | plot_mesh = new THREE.Mesh( |
Revision as of 07:25, 25 September 2011