SoIndexedShapeComputeBBox Method (SoAction, SbXfBox3d, SbVec3d) |
This handles OOBB bounding box computation for all shapes derived from this class.
Namespace: OIV.Inventor.NodesAssembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax [EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public override void ComputeBBox(
SoAction action,
out SbXfBox3d box,
out SbVec3d center
)
<EditorBrowsableAttribute(EditorBrowsableState.Advanced)>
Public Overrides Sub ComputeBBox (
action As SoAction,
<OutAttribute> ByRef box As SbXfBox3d,
<OutAttribute> ByRef center As SbVec3d
)
public:
[EditorBrowsableAttribute(EditorBrowsableState::Advanced)]
virtual void ComputeBBox(
SoAction^ action,
[OutAttribute] SbXfBox3d% box,
[OutAttribute] SbVec3d% center
) override
[<EditorBrowsableAttribute(EditorBrowsableState.Advanced)>]
abstract ComputeBBox :
action : SoAction *
box : SbXfBox3d byref *
center : SbVec3d byref -> unit
[<EditorBrowsableAttribute(EditorBrowsableState.Advanced)>]
override ComputeBBox :
action : SoAction *
box : SbXfBox3d byref *
center : SbVec3d byref -> unit
Parameters
- action
- Type: OIV.Inventor.ActionsSoAction
- box
- Type: OIV.InventorSbXfBox3d
- center
- Type: OIV.InventorSbVec3d
Remarks It sets the bounding box to contain all vertices of the shape, assuming that the shape uses the coordinates indexed by all non-negative values in the coordIndex field. It also sets the center to the average of the vertices' coordinates.
See Also