getMousePosition3D

Get the 3D coordinates for a given point on screen.

Demo

  1. Right-click anywhere in the viewing area, then choose 'Print coordinates' from the context menu.
  2. Alternatively, enter X and Y coordinates below, then click 'Print coordinates':

    X = Y =

The 2D click point and corresponding 3D coordinates are shown in the text box.
If no 3D geometry is displayed at the click point, the result is null.