Click or drag to resize
SoGetBoundingBoxAction Constructor

Constructor.

Namespace: OIV.Inventor.Actions
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax
public SoGetBoundingBoxAction(
	SbViewportRegion viewportRegion
)

Parameters

viewportRegion
Type: OIV.InventorSbViewportRegion
Remarks

Even though the bounding box computation may not involve a window per se, some nodes need the size of the viewport to determine their size in 3D coordinates. For example the size of an OIV.Inventor.Nodes.SoText2 is a fixed value in device coordinates, but the corresponding size in 3D depends on the current camera.

Usually it is convenient to get the actual viewport region from the viewer as shown in the example above. However if the scene graph does not contain any viewport dependent nodes then any values can be used.

See Also