21/05/01
Claudio Rocchini
6
Picking di un Punto 3D
•
if(qz==1.0){
// Proiezione inversa
•
x = y = z = 0.0;
•
return false;
•
}
else
{
•
GLdouble objz
= qz
;
•
GLdouble tx,ty,tz;
•
gluUnProject( GLdouble(sx),
GLdouble(sy),
objz,
•
modelMatrix,
projMatrix,
viewport,
•
&tx,
&ty,
&tz);
•
return true;
•
}