Define the dimensions of a volume
#include <volpack.h>
\$1 vpSetVolumeSize(vpc, xlen, ylen, zlen)
vpContext *vpc; int xlen, ylen, zlen;
VolPack context from vpCreateContext.
Size of first dimension of the volume in voxels.
Size of the second dimension of the volume in voxels.
Size of the third dimension of the volume in voxels.
vpSetVolumeSize is used to define the dimensions of a volume. It must be called before volume data is loaded into a rendering context. Any existing precomputed volume data structures in the context are destroyed.
The current volume dimensions may be retrieved with the following state variable codes (see vpGeti(3)): VP_XLEN, VP_YLEN, VP_ZLEN.
The return value is always VP_OK.
VolPack(3), vpCreateContext(3)