|
Getting Started with IDL: Volume Visualization |
|
The interactive iVolume tool allows you great flexibility in manipulating and visualizing true volume data.
Here is a simple example of one way to visualize a volume using the iVolume tool.
file = FILEPATH('head.dat', $SUBDIRECTORY = ['examples', 'data'])data = READ_BINARY(file, DATA_DIMS = [80, 100, 57])
iVolume, data
Volume data does not automatically appear in the tool window since volume rendering can be a time consuming operation. To render the volume, click the Render button on the tool. Auto-render is available but not set by default since it can slow down your iTool session if you have simultaneous operations.
| Note Volume data is only rendered if the volume dataspace is selected. Thus, if you have multiple volumes in your dataspace, auto-render must be turned on in order to render both simultaneously. |
The data loaded earlier can be displayed by clicking the Render button.
The volume can be rendered in two quality modes:
Since the volume is not always rendered, iVolume draws volume extents to help you locate and select the volume. You can select the volume by selecting on the extents, without rendering the volume. By default, iVolume draws a translucent solid cube with internal extents. You can also select a wire frame, or no extents.
| Note Use caution when turning off extents. If extents are turned off and Auto-Render is also off, you may need to use the Visualization Browser to select the volume again. |
The iVolume tool allows you many options such as displaying multiple planes, manipulating volume color and lighting, filtering, resampling, image planes, isosurfaces, interval volumes, viewing statistics and annotating. For much more information on working with the iVolume tool, see Working with Volumes.
IDL Online Help (March 06, 2007)