GET_VIEW_PROJECTION
Syntax
int_val = GET_VIEW_PROJECTION( view_origin_x, view_origin_y, view_origin_z, view_dir_dx, view_dir_dy, view_dir_dz, view_updir_dx, view_updir_dy, view_updir_dz );
- Output arguments
-
float view_origin_x X coordinate of view origin point float view_origin_y Y coordinate of view origin point float view_origin_z Z coordinate of view origin point float view_dir_dx X component of view direction vector float view_dir_dy Y component of view direction vector float view_dir_dz Z component of view direction vector float view_updir_dx X component of view up-direction vector float view_updir_dy Y component of view up-direction vector float view_updir_dz Z component of view up-direction vector
Return Values
- Success:
-
int 0 View projection returned successfully.
- Failure:
-
int -1 Script interface error.
Description
This function gets view projection: origin, view direction and view up-vector. This call has effect only when symbol is drawn in the context of Plant Modeller 3D views.
In other contexts passes back origin = {0 0 0}, view_dir = {0 0 1} and view_up = {0 1 0} directions. This function is originally intended to be used with labels.