Fri, 05/27/2011 - 14:41
Forums:
Hi, Can anybody tell me how to get the X Y Z points(gp_Pnt) when i click some where on the screen. I understand we get only two values from the screen. can we identify the plane in which we are clicking. I see the code of taking xMin and yMin in the "OnLButtonDown" function. but i need the "Z" value also Thanks in advance, Saneesh
Fri, 05/27/2011 - 15:31
Hi Saneesh,
You can use the method V3d_View.Convert(...) with the mouse x and y as input parameter and x,y,z as return parameter.
Hope that helps.
Peter
Fri, 05/27/2011 - 15:36
Thanks for the Help Peter let me work on that
Thu, 08/18/2022 - 03:09
Did it work?