Template:Team:UC Davis/MutantWidget

From 2011.igem.org

(Difference between revisions)
Line 479: Line 479:
if(!thisfacecolor)
if(!thisfacecolor)
{
{
-
alert("Something is terribly wrong!\na:"+data_3d[index].vertices[data_3d[index].faces[i].a].position.z+"\nb:"+data_3d[index].vertices[data_3d[index].faces[i].b].position.z+"\nc:"+data_3d[index].vertices[data_3d[index].faces[i].c].position.z+"\nd:"+data_3d[index].vertices[data_3d[index].faces[i].a].position.z);
+
alert("Something is terribly wrong!\na ("+data_3d[index].faces[i].a+"):"+data_3d[index].vertices[data_3d[index].faces[i].a].position.z+"\nb("+data_3d[index].faces[i].b+"):"+data_3d[index].vertices[data_3d[index].faces[i].b].position.z+"\nc("+data_3d[index].faces[i].c+"):"+data_3d[index].vertices[data_3d[index].faces[i].c].position.z+"\nd("+data_3d[index].faces[i].d+"):"+data_3d[index].vertices[data_3d[index].faces[i].a].position.z);
}
}
var newcolor = colorRamp(thisfacecolor, cool_color_ramp);
var newcolor = colorRamp(thisfacecolor, cool_color_ramp);

Revision as of 02:44, 26 September 2011