VolumeSize3
Define the dimensions of a volume
Usage
#include <volpack.h>
vpResult
vpSetVolumeSize(vpc, xlen, ylen, zlen)
-
vpContext *vpc;
-
int xlen, ylen, zlen;
Arguments
vpc
|
VolPack context from |
|---|---|
xlen
|
Size of first dimension of the volume in voxels. |
ylen
|
Size of the second dimension of the volume in voxels. |
zlen
|
Size of the third dimension of the volume in voxels. |
Overview
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.
State variables
The current volume dimensions may be retrieved with the following state variable codes (see vpGeti(3)): VP_XLEN, VP_YLEN, VP_ZLEN.
Errors
The return value is always VP_OK.
Releases
9 releases since Debian 5.0 (Lenny); the text changed 1 time.