L_VecIs3D

#include "lvkrn.h"

L_LVKRN_API L_BOOL L_VecIs3D(pVector)

Determines whether or not the specified vector handle contains 3D objects.

Parameters

const pVECTORHANDLE pVector

Pointer to a vector handle. The referenced vector will be checked for the presence of 3D objects.

Returns

Value Meaning
TRUE The referenced data contains a three dimensional object.
FALSE The referenced data contains a two dimensional object.

Comments

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.

Required DLLs and Libraries

See Also

Functions

Example

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; 
} 

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C API Help