logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

vpSetVolumeSize - define the dimensions of a volume

Arguments

vpc    VolPack context from vpCreateContext.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.

Description

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.

Errors

       The return value is always VP_OK.

Name

       vpSetVolumeSize - define the dimensions of a volume

See Also

VolPack(3), vpCreateContext(3)

VolPack                                                                                       vpSetVolumeSize(3)

State Variables

       The  current  volume dimensions may be retrieved with the following state variable codes (see vpGeti(3)):
       VP_XLEN, VP_YLEN, VP_ZLEN.

Synopsis

       #include <volpack.h>

       vpResult
       vpSetVolumeSize(vpc,xlen,ylen,zlen)
           vpContext *vpc;
           int xlen,ylen,zlen;

See Also