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
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)] public virtual void ComputeBBox( SoAction action, out SbXfBox3d box, out SbVec3d center )
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.