integrate3d
VEX function
This function will “integrate” the 3d image along the line specified by p0 and p1.
Contexts: image3d, chop, cop, pop, sop, surface, displace, fog, light, shadow, photon, cvex
-
float integrate3d(string filename, string channel, vector p0, vector p1) -
vector integrate3d(string filename, string channel, vector p0, vector p1) -
vector4 integrate3d(string filename, string channel, vector p0, vector p1)
This function will “integrate” the 3d image along the line specified by p0 and p1.
You can specify additional keyword,value argument pairs to set options for the integration. These arguments must be defined at load time (literals or parameters).
To specify one of the additional arguments, pass the keyword as a string, with the next argument being the value for the keyword. For example ..., "wrap", "clamp", "border", {.1,1,1}).
| Keyword | Value |
|---|---|
|
| Terminate the integration if the computed sum exceeds the |
|
| Determine the accuracy of integration. If the accuracy is |
|
| Scale the value of the image by the value specified during |
|
|
Specifies the filter for evaluation (see colormap). |
|
| Specifies the filter width for accurate integration. |
For example:
shadow_amount = integrate3d(file, "density", P, L, "maxlimit", 1, "iscale", shadow_density);