XformScreenToWorld

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.

Syntax

rhinoscriptsyntax.XformScreenToWorld (point, view=None, screen_coordinates=False)

rhinoscript.transformation.XformScreenToWorld (point, view=None, screen_coordinates=False)

Parameters

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.

Returns

Point3d

A 3-D point in world coordinates if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

point2d = 200,100

view = rs.CurrentView()

point = rs.XformScreenToWorld(point2d, view)

print point

Also See

XformWorldToScreen