rtcIntersect1M.3embree3 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. .TH "rtcIntersect1M" "3" "" "" "Embree Ray Tracing Kernels 3"
  2. .SS NAME
  3. .IP
  4. .nf
  5. \f[C]
  6. rtcIntersect1M\ \-\ finds\ the\ closest\ hits\ for\ a\ stream\ of\ M\ single
  7. \ \ rays
  8. \f[]
  9. .fi
  10. .SS SYNOPSIS
  11. .IP
  12. .nf
  13. \f[C]
  14. #include\ <embree3/rtcore.h>
  15. void\ rtcIntersect1M(
  16. \ \ RTCScene\ scene,
  17. \ \ struct\ RTCIntersectContext*\ context,
  18. \ \ struct\ RTCRayHit*\ rayhit,
  19. \ \ unsigned\ int\ M,
  20. \ \ size_t\ byteStride
  21. );
  22. \f[]
  23. .fi
  24. .SS DESCRIPTION
  25. .PP
  26. The \f[C]rtcIntersect1M\f[] function finds the closest hits for a stream
  27. of \f[C]M\f[] single rays (\f[C]rayhit\f[] argument) with the scene
  28. (\f[C]scene\f[] argument).
  29. The \f[C]rayhit\f[] argument points to an array of ray and hit data with
  30. specified byte stride (\f[C]byteStride\f[] argument) between the ray/hit
  31. structures.
  32. See Section [rtcIntersect1] for a description of how to set up and trace
  33. rays.
  34. .IP
  35. .nf
  36. \f[C]
  37. \f[]
  38. .fi
  39. .IP
  40. .nf
  41. \f[C]
  42. \f[]
  43. .fi
  44. .PP
  45. A ray in a ray stream is considered inactive if its \f[C]tnear\f[] value
  46. is larger than its \f[C]tfar\f[] value.
  47. .PP
  48. The stream size \f[C]M\f[] can be an arbitrary positive integer
  49. including 0.
  50. Each ray must be aligned to 16 bytes.
  51. .SS EXIT STATUS
  52. .PP
  53. For performance reasons this function does not do any error checks, thus
  54. will not set any error flags on failure.
  55. .SS SEE ALSO
  56. .PP
  57. [rtcOccluded1M]