formZ SDK | 5.0 API Reference | Project | Modeling | View Manager

fz_view_math_screen_2_world

Description

Routine to convert a screen (pixel) coordinate to a 3D world coordinate. If plane == NULL, the 3D coordinate is a point on the current reference plane. This is not supported for the FZ_VIEW_TYPE_PANORAMIC view type.

Plugin Prototype

fzrt_error_td fz_view_math_screen_2_world(

fzrt_int

windex,

fzrt_point *

screen_pnt,

fz_map_plane_td *

plane,

fz_xyz_td *

world_pnt )

Parameters

windex [Input]

project window index

screen_pnt [Input]

2D point in screen (pixel) space

plane [Input, Optional]

plane to project point on (defaults to current plane if not provided)

world_pnt [Result]

3D point in world space

Returns

None

Availability

5.0.0.0

Function Set

fz_view_fset


Defined in

fz_view_api.h