public

Inheritance Graph

graph BT
	RayCaster
	click RayCaster "classMinSG_1_1PathTracing_1_1RayCaster"

Description

Class to perform ray casting.

Public Types

   
   
typedef std::tuple< value_t, value_t, value_t, ExtTriangle > intersection_t
   
typedef std::vector< intersection_t > intersection_packet_t
   
typedef Geometry::_Vec3 < value_t > vec_t
   
typedef Geometry::_Ray < vec_t > ray_t
   
typedef Geometry::_Box < value_t > box_t

Public Static Functions

   
   
intersection_packet_t castRays(const SolidTree_ExtTriangle & tree, const std::vector< ray_t > & rays, const box_t & bounds)

Documentation

typedef
MinSG::PathTracing::RayCaster::intersection_t

public
 
 
typedef std::tuple< value_t, value_t, value_t, ExtTriangle > intersection_t

Defined in MinSG/Ext/PathTracing/RayCaster.h:41


typedef
MinSG::PathTracing::RayCaster::intersection_packet_t

public
 
 
typedef std::vector< intersection_t > intersection_packet_t

Defined in MinSG/Ext/PathTracing/RayCaster.h:42


typedef
MinSG::PathTracing::RayCaster::vec_t

public
 
 
typedef Geometry::_Vec3 < value_t > vec_t

Defined in MinSG/Ext/PathTracing/RayCaster.h:44


typedef
MinSG::PathTracing::RayCaster::ray_t

public
 
 
typedef Geometry::_Ray < vec_t > ray_t

Defined in MinSG/Ext/PathTracing/RayCaster.h:45


typedef
MinSG::PathTracing::RayCaster::box_t

public
 
 
typedef Geometry::_Box < value_t > box_t

Defined in MinSG/Ext/PathTracing/RayCaster.h:46


function
MinSG::PathTracing::RayCaster::castRays

public static
     
     
intersection_packet_t castRays( const SolidTree_ExtTriangle & tree,
  const std::vector< ray_t > & rays,
  const box_t & bounds
)    

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, ornullptrif 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