Click or drag to resize
SoShapeComputeBBox Method (SoAction, SbXfBox3d, SbVec3d)

Compute object oriented bounding box (OOB) for subclass using information in the given action (which may not necessarily be an OIV.Inventor.Actions.SoGetBoundingBoxAction).

Namespace: OIV.Inventor.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public virtual void ComputeBBox(
	SoAction action,
	out SbXfBox3d box,
	out SbVec3d center
)

Parameters

action
Type: OIV.Inventor.ActionsSoAction
box
Type: OIV.InventorSbXfBox3d
center
Type: OIV.InventorSbVec3d
Remarks

This is used by OIV.Inventor.Nodes.SoShape.GetBoundingBox(OIV.Inventor.Actions.SoGetBoundingBoxAction) and when rendering or picking a shape with bounding-box complexity.

This method returns an Object Oriented Bounding Box (OOB), which may be more efficient for picking, colision detection, and culling compared to an axis aligned bounding box, at the cost of more computing time. Subclasses should override this method, if not then the axis aligned bounding bbox is used.

By default Open Inventor only uses the axis aligned bounding box (AABB). OOB can be enabled using OIV.Inventor.Nodes.SoComplexity or the OIV_USE_OOB environment variable.

See Also