Casting rays from mesh geometry

Hi All,

I have an RF/Radiation transfer application where I’d like to cast/launch rays from a mesh using OptiX

I’ve setup the scene and my hit and material programs. I’ve tagged materials that should launch rays.

In the ray generation program, I’d like to loop through geometries, check the material tag and, if an emitting material, launch rays by looping through each mesh element on the geometry.

Does anyone have any hints on how to access mesh information in the ray generation program? Ideally this would also preserve any transformations done on the geometry.

CC