Inheritance Graph
graph BT
RayCaster
click RayCaster "classMinSG_1_1PathTracing_1_1RayCaster"
Description
Class to perform ray casting.
Public Types
Public Static Functions
Documentation
typedef
MinSG::PathTracing::RayCaster::intersection_t
Defined in MinSG/Ext/PathTracing/RayCaster.h:41
typedef
MinSG::PathTracing::RayCaster::intersection_packet_t
Defined in MinSG/Ext/PathTracing/RayCaster.h:42
typedef
MinSG::PathTracing::RayCaster::vec_t
Defined in MinSG/Ext/PathTracing/RayCaster.h:44
typedef
MinSG::PathTracing::RayCaster::ray_t
Defined in MinSG/Ext/PathTracing/RayCaster.h:45
typedef
MinSG::PathTracing::RayCaster::box_t
Defined in MinSG/Ext/PathTracing/RayCaster.h:46
function
MinSG::PathTracing::RayCaster::castRays
Cast a packet of rays against a scene and return the first objects that are hit together with the intersection distance.
Parameters
- scene
- Root node of the scene that will be used for casting
- rays
- Array of rays, given in the world coordinate system
Returns
Array of intersection results. Each result contains the first object that is hit by the ray, ornullptr
if no object is hit, as first entry. The intersection value for the point where an object is hit is stored in the second entry of the result.
Defined in MinSG/Ext/PathTracing/RayCaster.h:59