rtcTraversableIntersect1(3) Embree Ray Tracing Kernels 4 rtcTraversableIntersect1(3)

rtcTraversableIntersect1 - finds the closest hit for a single ray

#include <embree4/rtcore.h>
void rtcTraversableIntersect1(
  RTCTraversable traversable,
  struct RTCRayHit* rayhit
  struct RTCIntersectArguments* args = NULL
);

The rtcTraversableIntersect function is equivalent to rtcIntersect1 but takes traversable object (traversable argument) instead of a scene object. Using this method is optional on CPU but it is required for SYCL.

For more details, refer to the documentation of rtcIntersect1.

For performance reasons this function does not do any error checks, thus will not set any error flags on failure.

[rtcIntersect1], [rtcGetSceneTraversable]