intersect3d VEX function
This function intersects a ray (with it’s origin at p0 and extending to p1), against a 3d texture image.
Contexts: image3d, chop, cop, pop, sop, surface, displace, fog, light, shadow, photon, cvex
-
int intersect3d(string filename, string channel, vector p0&, vector p1, float density)
This function intersects a ray (with it’s origin at p0 and extending to p1), against a 3d texture image. The ray will intersect the iso-surface of the texture at the density specified. If no intersection is found, then 0 is returned.
The point p0 will be modified regardless of whether an intersection is found or not.
You can pass additional arguments to control the evaluation (see colormap):
| Keyword | Value |
|---|---|
|
| Specifies the filter for evaluation. |
|
| Specifies the filter width for evaluation. |