vpSetVolumeSize(3)
π vpSetVolumeSize(3) β Library Functions Manual π
ok so bestie, welcome to the manual page for vpSetVolumeSize, straight out of the VolPack library functions manual. she's a little function with one job and she does it flawlessly. let's get into it π
β¨ NAME β¨
vpSetVolumeSize β define the dimensions of a volume. that's it, that's the whole vibe. she sizes your volume. iconic behavior honestly π
πΈ SYNOPSIS πΈ
#include <volpack.h>
vpResult
vpSetVolumeSize(vpc, xlen, ylen, zlen)
vpContext *vpc;
int xlen, ylen, zlen;
look at her. four args, returns a vpResult, includes <volpack.h>. no notes, she's perfect π¦
π«Ά ARGUMENTS π«Ά
vpcβ the VolPack context, and you get it fromvpCreateContext. she needs her context bestie, don't leave home without it πxlenβ size of the first dimension of the volume, measured in voxels. voxels. say it with me. voxels β¨ylenβ size of the second dimension of the volume, in voxels.zlenβ size of the third dimension of the volume, in voxels. yes three of them. it's giving 3D. it's giving main character energy π
π₯ DESCRIPTION π₯
okay so vpSetVolumeSize is the one you call to define the dimensions of a volume. that's her whole thing. she shows up, she sets the size, she leaves.
the important part though β and I cannot stress this enough β she must be called before volume data gets loaded into a rendering context. like, before. not after. if you do it in the wrong order, that's a you problem and the volume data is not gonna have a good time π
and one more thing, no cap: any existing precomputed volume data structures in the context get destroyed by this call. gone. deleted. they simply cease to exist. so if you had precious precomputed data in there, bestie, that's on you π
fr fr, call this first, then load. do not load, then call. the ordering is the whole plot.
π STATE VARIABLES π
you can pull the current volume dimensions back out with these state variable codes β just pass them to vpGeti(3), iykyk:
VP_XLENVP_YLENVP_ZLEN
three codes for three dimensions. symmetry, we love to see it πΈ
π ERRORS π
the return value is always VP_OK. always. every single time. she never fails you. not once. not ever. lowkey the most reliable function in the whole library π₯Ή
π SEE ALSO π
and that's the whole page, bestie π
this one came to you from the VolPack crew β that's the source and version stamped on her, and the date line too, all wrapped up in this cute little sign-off instead of the boring footer. go forth and set those volume sizes. periodt. β¨π¦π
π¦ where this page comes from
- debian bookworm: libvolpack1-dev 1.0b3-9 Β· BSD-3-Clause
- debian trixie: libvolpack1-dev 1.0b3-10 Β· BSD-3-Clause
- ubuntu jammy: libvolpack1-dev 1.0b3-9 Β· BSD-3-Clause
- ubuntu noble: libvolpack1-dev 1.0b3-9.1 Β· BSD-3-Clause
- ubuntu questing: libvolpack1-dev 1.0b3-11
- ubuntu resolute: libvolpack1-dev 1.0b3-11build1 Β· BSD-3-Clause
- ubuntu stonking: libvolpack1-dev 1.0b3-11build1 Β· BSD-3-Clause
- Copyright (c) 1994 The Board of Trustees of The Leland Stanford
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms