<DIV>Hello all</DIV>
<DIV>&nbsp;</DIV>
<DIV>I am using the following code to convert the display coords to world coords </DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp; double *arr=cam-&gt;GetFocalPoint();<BR>&nbsp;&nbsp;&nbsp;&nbsp; x=iren-&gt;GetEventPosition()[0]; <BR>&nbsp;&nbsp;&nbsp;&nbsp; y=iren-&gt;GetEventPosition()[1]; <BR>&nbsp;&nbsp;&nbsp;&nbsp; z=arr[2];<BR>&nbsp;float display[3];<BR>&nbsp;display[0]=(float)x;<BR>&nbsp;display[1]=(float)y;<BR>&nbsp;display[2]=(float)z;<BR>&nbsp;ren-&gt;SetDisplayPoint(display);<BR>&nbsp;ren-&gt;DisplayToWorld();<BR>&nbsp;float *world;<BR>&nbsp;world=ren-&gt;GetWorldPoint();<BR>&nbsp;vol-&gt;SetPosition((double)world[0],(double)world[1],(double)world[2]);<BR>&nbsp;iren-&gt;Render();</DIV>
<DIV>&nbsp;</DIV>
<DIV>but the world coords that i am getting is something like</DIV>
<DIV>&nbsp; world[0]=2000.34;</DIV>
<DIV>&nbsp; world[1]=95123.00</DIV>
<DIV>&nbsp;world[2]= -2300.04</DIV>
<DIV>&nbsp;</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>