<DIV>Hello all</DIV>
<DIV> </DIV>
<DIV>I am using the following code to convert the display coords to world coords </DIV>
<DIV> </DIV>
<DIV> double *arr=cam->GetFocalPoint();<BR> x=iren->GetEventPosition()[0]; <BR> y=iren->GetEventPosition()[1]; <BR> z=arr[2];<BR> float display[3];<BR> display[0]=(float)x;<BR> display[1]=(float)y;<BR> display[2]=(float)z;<BR> ren->SetDisplayPoint(display);<BR> ren->DisplayToWorld();<BR> float *world;<BR> world=ren->GetWorldPoint();<BR> vol->SetPosition((double)world[0],(double)world[1],(double)world[2]);<BR> iren->Render();</DIV>
<DIV> </DIV>
<DIV>but the world coords that i am getting is something like</DIV>
<DIV> world[0]=2000.34;</DIV>
<DIV> world[1]=95123.00</DIV>
<DIV> world[2]= -2300.04</DIV>
<DIV> </DIV>
<DIV>Please suggest a solution</DIV>
<DIV>Thanks</DIV>
<DIV>Megha</DIV><p><font face=arial size=-1>
<a href="http://in.rd.yahoo.com/specials/mailtag/*http://in.insurance.yahoo.com/licspecial/index.html" target="_blank"><b>Yahoo! India Insurance Special</a>:</b> Be informed on the best policies, services, tools and more.</font>