vpSetVolumeSize(3)

πŸ“¦ version 1.0c7, in fedora 43, fedora 44

✨ 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 from vpCreateContext. 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