poI3DViewCtrl SetLookAt

Sets the view matrix using nine points.

Syntax

poI3DViewCtrl_handle SetLookAtpoints name

Application

HyperView Tcl Modify

Description

Uses three vertices to calculate and set the view matrix.

Inputs

points
A string containing nine numbers. The first three numbers represent the position of the camera (eye). The next three numbers represent the position that the camera is looking at (center). The last three numbers represent the orientation of the camera (up).
name
String specifying the name of the view to be modified.

Example

To set “View 1” with the camera at coordinates 0,0,0 looking at an object at 1,1,1 with the camera oriented upwards along the z axis:
hwi OpenStack
hwi GetSessionHandle session_handle
session_handle GetProjectHandle project_handle
project_handle GetPageHandle page_handle [project_handle GetActivePage]
page_handle GetWindowHandle window_handle [page_handle GetActiveWindow]
window_handle GetViewControlHandle view_handle
view_handle SetLookAt “0 0 0 1 1 1 0 0 1” “View 1”
hwi CloseStack

Error

Returns HW_InvalidHandle if the view handle is invalid.

Returns HW_InvalidArgs if either the points or name are invalid.