Houdini 20.5 Nodes APEX nodes

geo::Intersect

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

On this page
Since 20.0

Determines the intersection point of a ray with an intersection cache. See geo::InitIntersectCache for information on how to create an intersection cache.

Inputs

intersect_cache: ApexIntersectCache

An intersection cache object, created via the geo::InitIntersectCache node.

origin: Vector3

The starting point of the ray in world space.

dir: Vector3

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 primitive that is hit if the ray intersects the geometry. If the ray does not intersect the geometry, primnum is set to -1.

uvw: Vector3

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

See also

APEX nodes