Procedure ShapeFrustum

Parent Previous Next

Description: Creates a frustum 3D object in TerrainView™. It behaves like the other entities and can be transformed by the EntityTransform procedure. The frustum can be deleted with the EntityDelete procedure. The frustum will be visible in the scene view of the  TerrainView™ GUI like a normal 3D object. By clicking on the frustum 3D object with the right mouse button, the 3D object context-menu appears  with an additional menu item “Attach camera”. If the camera is attached to the frustum, the camera frustum will be aligned to the shape frustum.

Struct:

Field Name

O

Type

Description

ID


string

A CustomID for the frustum entity, must be unique and cannot begin with "VT:".

Color


double[4]

The color of the frustum in the order RGBA, each component ranges from 0.0 to 1.0.

FOVHoriz


double

The horizontal field of view (FOV) angle of the frustum.

FOVVert


double

The vertical field of view (FOV) angle of the frustum.

Length


double

The length (height) of the frustum in distance units.