vpSetVolumeSize(3)
β¨ vpSetVolumeSize β¨
okay so bestie, welcome to the vpSetVolumeSize(3) page from the Library Functions Manual π this is the lil function that tells VolPack how big your volume actually is. it's giving "set the vibe, then load the data." no cap.
πΈ SYNOPSIS πΈ
#include <volpack.h>
vpResult
vpSetVolumeSize(vpc, xlen, ylen, zlen)
vpContext *vpc;
int xlen, ylen, zlen;
π ARGUMENTS π
vpcβ the VolPack context you got fromvpCreateContext. your main character struct π«Άxlenβ how big the first dimension of the volume is, measured in voxels.ylenβ how big the second dimension of the volume is, in voxels.zlenβ how big the third dimension of the volume is, in voxels.
π¦ DESCRIPTION π¦
so like, vpSetVolumeSize is literally just here to define the dimensions of a volume. that's it, that's the job. π
it must be called before volume data gets loaded into a rendering context. like, before. not after. the order is not optional, bestie, it's the whole point.
β οΈ also heads up: any existing precomputed volume data structures chilling in the context get destroyed. gone. poof. so don't call this casually unless you're ready to say goodbye π
β STATE VARIABLES β
you can peek at the current volume dimensions with these state variable codes (check vpGeti(3) for the deets): VP_XLEN, VP_YLEN, VP_ZLEN. iykyk π
π ERRORS π
the return value is always VP_OK. always. every single time. iconic behaviour honestly π
π SEE ALSO π
and that's the whole page, bestie! this absolute slay of a man page comes to you from VolPack, and the date down at the bottom of the original footer is... well, it just says vpSetVolumeSize(3) again, so consider yourself blessed with no date drama π§ββοΈπ periodt.
π¦ where this page comes from
- fedora 43: volpack 1.0c7-35.fc43 Β· BSD-3-Clause
- fedora 43: volpack 1.0c7-35.fc43 Β· BSD-3-Clause
- fedora 44: volpack 1.0c7-36.fc44 Β· BSD-3-Clause
- fedora 44: volpack 1.0c7-36.fc44 Β· BSD-3-Clause
- Copyright (c) 1995-2008, Stanford University
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms