Determines whether or not the specified vector handle contains 3D objects.
#include "ltvkrn.h"
L_LVKRN_API L_BOOL L_VecIs3D(pVector)
Pointer to a vector handle. The referenced vector will be checked for the presence of 3D objects.
Value | Meaning |
---|---|
TRUE | The referenced data contains a three dimensional object. |
FALSE | The referenced data contains a two dimensional object. |
Call this function to determine whether or not the given vector handle contains any 3D objects.
A vector handle is considered to be "3D" if it has one or more objects stretching within the Z-axis.
This example will determine whether the given vector handle is 2D or 3D.
L_INT VecIs3DExample(pVECTORHANDLE pVector)
{
/* Check if 3D */
if( L_VecIs3D( pVector ) )
MessageBox( NULL, TEXT("Vector is 3D"), TEXT("Test"), MB_OK );
else
MessageBox( NULL, TEXT("Vector is 2D"), TEXT("Test"), MB_OK );
return SUCCESS;
}