home *** CD-ROM | disk | FTP | other *** search
/ Virtual Reality Madness / VRMAD96_ONE.ISO / virtek / libex / libex059.c < prev    next >
C/C++ Source or Header  |  1995-08-24  |  643b  |  14 lines

  1.                                               // Example: 059 from Library Reference
  2. #include "..\3D-Ware\dddware.h"
  3. #include <stdio.h>
  4. short    size, ShapeHandle;
  5. short  main(void)
  6. {
  7.   dddInitAll();                               // MUST be before any calls to 3D-Ware libraries
  8.   ShapeHandle = (dddShapeLoad("EXAMPLE.3D")); // Load the .3D data file.
  9.   size = dddGetShapeSize(ShapeHandle);        // Get the size of this shape.
  10.   dddRestoreAll();                            // Clean up behind ourselves.
  11.   printf("The smallest bounding box would be %d units square",size);
  12.   return 0;                                   // Bye.
  13. }
  14.