SbBox3fOutside Method (SbMatrix, Int32) |
Tests if bounding box is completely outside the view-volume defined by the
model+view+projection matrix given.
Namespace: OIV.InventorAssembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 2024.2.2.Release.778f4cc64de03c89c1282c66aa1f73c0e9a1408b
Syntax public bool Outside(
ref SbMatrix MVP,
ref int cullBits
)
Public Function Outside (
ByRef MVP As SbMatrix,
ByRef cullBits As Integer
) As Boolean
public:
bool Outside(
SbMatrix% MVP,
int% cullBits
)
member Outside :
MVP : SbMatrix byref *
cullBits : int byref -> bool
Parameters
- MVP
- Type: OIV.InventorSbMatrix
Model + view + projection matrix. - cullBits
- Type: SystemInt32
Keeps track of which view-volume clipping planes
the box is completely inside of. Set cullBits to 7 when calling
this method for the first time.
Return Value
Type:
Booleantrue if this box is completely outside,
false otherwise.
Remarks cullBits keeps track of which view-volume clipping planes
the box is completely inside of; if a 'parent' bounding box of this
bounding box was found to be completely inside the left/right clipping
planes, the low bit of cullBits will be set to zero, and this routine
will not test this box against those planes.
When cullBits is zero, it is a waste of time to call this function!
Before calling this the first time, set cullBits to 7
(SoGLRenderAction and
SoSeparator will handle this automatically
for render culling).
See Also