Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

developer:sdksamples:pointatcursor [2015/09/14]
127.0.0.1 external edit
developer:sdksamples:pointatcursor [2015/12/10] (current)
sandy
Line 1: Line 1:
-======Get the point at the current cursor position======+======Get the Point at the Current Cursor Position======
 > **Developer:​** //​[[developer:​cplusplusplugins|C++]],​ [[developer:​dotnetplugins|.NET]]//​ > **Developer:​** //​[[developer:​cplusplusplugins|C++]],​ [[developer:​dotnetplugins|.NET]]//​
 > **Summary:​** //Discusses how to convert a 2-D screen point into a 3-D world point.// > **Summary:​** //Discusses how to convert a 2-D screen point into a 3-D world point.//
-> **NOTICE:** //The Rhino.NET SDK is deprecated in Rhino 5.  ​This example adapted for the new RhinoCommon SDK is [[developer:​rhinocommonsamples:​pointatcursor|here]]//​+> **Notice:** //The Rhino.NET SDK is deprecated in Rhino 5.  ​An example adapted for the new RhinoCommon SDK is [[developer:​rhinocommonsamples:​pointatcursor|here]].//
 =====Question===== =====Question=====
 Is there way to convert a 2-D screen point, obtained from the mouse cursor position, to a 3-D point? Is there way to convert a 2-D screen point, obtained from the mouse cursor position, to a 3-D point?
  
 =====Answer===== =====Answer=====
-Yes there is. You will need to make sure the 2-D point is in screen coordinates,​ not client coordinates. Then, you can obtain a screen-to-world transformation from the active viewport that you can use to transform the point.+Yes there is. Make sure the 2-D point is in screen coordinates,​ not client coordinates. Then, you can obtain a screen-to-world transformation from the active viewport that you can use to transform the point.
  
 =====Example===== =====Example=====
developer/sdksamples/pointatcursor.txt ยท Last modified: 2015/12/10 by sandy