Template:Team:UC Davis/MutantWidget
From 2011.igem.org
(Difference between revisions)
Line 416: | Line 416: | ||
thisdataz[i] = parseFloat(thisdataz[i]); | thisdataz[i] = parseFloat(thisdataz[i]); | ||
var particle = new THREE.Vertex( | var particle = new THREE.Vertex( | ||
- | new THREE.Vector3(thisdatax[i%thisdatax.length], thisdatay[Math.floor(i/ | + | new THREE.Vector3(thisdatax[i%thisdatax.length], thisdatay[Math.floor(i/thisdatax.length)], thisdataz[i]) |
); | ); | ||
particles.vertices.push(particle); | particles.vertices.push(particle); | ||
Line 449: | Line 449: | ||
thisdataz[kx+1+(ky+1)*thisdatax.length], thisx, thisy) | thisdataz[kx+1+(ky+1)*thisdatax.length], thisx, thisy) | ||
data_3d[index].vertices[j*numxpoints+i].position.z = thisz/axisdimensions[5]*100; | data_3d[index].vertices[j*numxpoints+i].position.z = thisz/axisdimensions[5]*100; | ||
- | |||
- | |||
} | } | ||
} | } |
Revision as of 07:27, 25 September 2011