Houdini 20.0 Nodes APEX Nodes

geo::Intersect

Determines the intersection point of a ray with an intersection cache.

On this page
Since 20.0

See InitIntersectCache for more details on how to create an intersection cache.

Inputs

intersect_cache: ApexIntersectCache

An intersection cache object, created via the InitIntersectCache node.

origin: Vector3

A Vector3 object representing the starting point of the ray in world space.

dir: Vector3

A Vector3 object representing the direction vector of the ray.

Outputs

hitpos: Vector3

The intersection position in world space.

hitnormal: Vector3

The normal direction from the surface to the ray.

primnum: Int

The primitive number of the hit primitive if the ray intersected the geometry, or -1 if the ray did not hit.

uvw: Vector3

The UVW position within the intersecting primitive where the ray hit.

APEX Nodes