CreatingImage3D This example demonstrates how to create a new 3D image containing data from a buffer.
DESCRIPTION:
First this example shows how to fill an SoCpuBufferObject with synthetic values that would represent a bright 3D bar on a gray background.
Then this buffer is set in an SoMemoryDataAdapter that corresponds to a 3D 256x256x32 image.
At least a simple scene graph is built and the image is displayed in a viewer with as a volume rendering.
NOTE:
SEE ALSO
SoVRImageDataReader, SbImageDataAdapterHelper, SoMemoryDataAdapter
SCREENSHOT:
FILES:
-
ImageViz/GettingStarted/04.2.CreatingImage3D.cxx