home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Madness
/
VRMAD96_ONE.ISO
/
virtek
/
libex
/
libex059.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-24
|
643b
|
14 lines
// Example: 059 from Library Reference
#include "..\3D-Ware\dddware.h"
#include <stdio.h>
short size, ShapeHandle;
short main(void)
{
dddInitAll(); // MUST be before any calls to 3D-Ware libraries
ShapeHandle = (dddShapeLoad("EXAMPLE.3D")); // Load the .3D data file.
size = dddGetShapeSize(ShapeHandle); // Get the size of this shape.
dddRestoreAll(); // Clean up behind ourselves.
printf("The smallest bounding box would be %d units square",size);
return 0; // Bye.
}