array VEX function

Efficiently creates an array from its arguments.

Contexts: image3d, chop, cop, pop, sop, surface, displace, fog, light, shadow, photon, cvex

  1. arraytype array(...)

You should use function-style casting to ensure the array members have the correct type:

vector v[] = vector(array( 1, {1,2,3}, 3, s, t, Cl, P, N));
float  f[] = float(array(1, 2, s, t, length(P-L), length(N)));