Dump a scene from the viewer

 

You can dump the contents of a V3D_View in a file with the same scale or with a different scale according to the required paper size (format) and the aspect ratio of the view. This is provided by the Dump method in the V3d_View class.

For example:

CString filename ("myView3D.bmp");

myView->Dump (filename, Aspect_FOSP_A4);

myView is the V3d_View, where OCCT objects are displayed using, for example, AIS services.

Notes :

The file name extension can be any among ".xwd", ".gif", or ".bmp" formats both on UNIX or NT.

Be careful about dump time requirements of the resulting file, especially for the A formats.

The GIF format generates very small files, BMP and XWD generates much larger files (4 to 6 times the size of a GIF).

The time to generate these files is very short with the XWD format but 2 to 4 times longer for the other formats.

After getting an image file of your view, you can use any standard application for editing or sending the image file to a printer (i.e.: Microsoft Photo Editor on Windows or Image Viewer on SUN system)