vpSetRawVoxels (3) - Linux Manuals
vpSetRawVoxels: specify an array of volume data
NAMEvpSetRawVoxels - specify an array of volume data
- vpSetRawVoxels(vpc, voxels, size, xstride, ystride, zstride)
- vpContext *vpc;
- void *voxels;
- int size;
- int xstride, ystride, zstride;
- VolPack context from vpCreateContext.
- 3D array of voxels.
- Size of the voxel array in bytes.
- Number of bytes from the beginning of one voxel to the beginning of the next voxel in the first array dimension.
- Number of bytes from the beginning of one voxel to the beginning of the next voxel in the second array dimension.
- Number of bytes from the beginning of one voxel to the beginning of the next voxel in the third array dimension.
DESCRIPTIONvpSetRawVoxels is used to specify a 3D array that contains the volume data. The array must be large enough for the volume dimensions specified with vpSetVolumeSize and the voxel size specified with vpSetVoxelSize. The data in the array may be initialized before or after calling vpSetRawVoxels.
Some of the VolPack routines operate faster if the volume is stored in z-major order (xstride < ystride < zstride) but it is not strictly necessary.
The voxel array is not automatically deallocated when the context is destroyed with vpDestroyContext. The application is responsible for managing the memory associated with the volume array.
The voxel array can be a very large data structure, possibly larger than available main memory. It is sometimes possible to precompute the optimized data structures required for the fast rendering algorithm without explicitly allocating a voxel array. See vpClassifyScalars(3).