Transforms either client-area coordinates of a specified view or screen coordinates to world coordinates. The resulting coordinates are represented as a 3-D point.
rhinoscriptsyntax.XformScreenToWorld (point, view=None, screen_coordinates=False)
rhinoscript.transformation.XformScreenToWorld (point, view=None, screen_coordinates=False)
point |
Required. List of 2 numbers or Point2d. A 2-D point in either client-area coordinates of a specified view or screen coordinates. |
view |
Optional. String or Guid. The title or identifier of the view. If omitted, the active view is used. |
screen_coordinates |
Optional. Boolean. If omitted or False, the function assumes point represents client-area coordinates. If True, then the function assumes point represents screen coordinates. |
Point3d |
A 3-D point in world coordinates if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
point2d = 200,100
view = rs.CurrentView()
point = rs.XformScreenToWorld(point2d, view)
print point