SoComputeBoundingBox

InventorModule
genre InventorEngines
author Silicon Graphics Inc
package MeVisLab/Standard
definition inventor.def

Purpose

This engine computes the bounding box and center of a scene graph. The scene graph can be defined by a path or by a root node.

If the Path input is not NULL, the bounding box of the graph defined by the path will be computed. If path is NULL, but the node input is not NULL, the bounding box is computed on the graph rooted by the node. By default, the two inputs are NULL. If both the inputs are NULL, the outputs are disabled.

The engine uses a default viewport region. If the graph includes screen- based objects (such as SoText2) you can call setViewportRegion() on the engine instance to set up the correct viewport region to use.

Windows

Default Panel

../../../Modules/Inventor/InventorBase/mhelp/Images/Screenshots/SoComputeBoundingBox._default.png

Input Fields

node

name: node, type: SoNode

Defines the graph for which the bounding box is computed.

Parameter Fields

Field Index

Box Center: EngineOutput
Max: EngineOutput
Min: EngineOutput
Object Center: EngineOutput
Path: SoPath

Visible Fields

Path

name: path, type: SoPath

Alternatively, defines the graph for which the bounding box is computed.

Min

name: min, type: EngineOutput, persistent: no

Minimum point of the computed bounding box.

Max

name: max, type: EngineOutput, persistent: no

Maximum point of the computed bounding box.

Box Center

name: boxCenter, type: EngineOutput, persistent: no

Center of the computed bounding box.

Object Center

name: objectCenter, type: EngineOutput, persistent: no

Center of the objects in the graph.