home *** CD-ROM | disk | FTP | other *** search
- // 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.
- }
-