Houdini 11 VEX VEX functions

Calculates the volume primitive’s gradient.

  1. vector volumegradient(int inputnum, int primnum, vector pos)

  2. vector volumegradient(string filename, int primnum, vector pos)

Calculates the volume primitive’s gradient. Returns 0 if there is no input or file, or the primitive number is out of range. The gradient is a vector pointing in the direction of increasing value.

Contexts: all