/* This is the block.cxx example program from page 65 of: J. Corney and T. Lim, "3D Modeling with ACIS", Saxe-Coburg Publications, Dun Eaglais, UK, 2001 This program starts the ACIS modeler, creates a block, prints out its data-structure and stops the modeler. Before running this program, make sure you set the shared library path: setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/usr/arch/apps/acis/lib/solaris_so:/usr/arch/apps/acis/lib/solaris_so_debug */ #include #include #include #include #include int main() { api_start_modeller(0); api_initialize_constructors(); BODY *block; api_make_cuboid(100, 50, 200, block); FILE *output = fopen("cube.dbg","w"); debug_size(block, output); fclose(output); api_terminate_constructors(); api_stop_modeller(); return 0; }