Click or drag to resize
SoPerspectiveCameraGetViewVolume Method (Single)

Fills in a view volume structure, based on the camera.

Namespace: OIV.Inventor.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public override SbViewVolume GetViewVolume(
	float useAspectRatio
)

Parameters

useAspectRatio
Type: SystemSingle

Return Value

Type: SbViewVolume
Remarks

If the useAspectRatio field is not 0.0 (the default), the camera uses that ratio instead of the one it has.

Note that in ADJUST_CAMERA mode, Inventor automatically modifies the view volume based on the aspect ratio of the viewport. However the view volume values are not changed, only the values passed to OpenGL. In order to get the modified values (i.e., the actual view volume used to render) you must pass the actual viewport aspect ratio to getViewVolume.

See Also