triro 1.3.0
A Python Ray-Mesh Intersector in OptiX
Loading...
Searching...
No Matches
ray.h File Reference
#include "CUDABuffer.h"
#include "base.h"
#include "optix_types.h"
#include <torch/extension.h>
#include <limits>
Include dependency graph for ray.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  hmesh::OptixAccelStructureWrapperCPP
 

Namespaces

namespace  hmesh
 

Functions

torch::Tensor hmesh::intersectsAny (OptixAccelStructureWrapperCPP as, const torch::Tensor &origins, const torch::Tensor &dirs)
 
torch::Tensor hmesh::intersectsFirst (OptixAccelStructureWrapperCPP as, const torch::Tensor &origins, const torch::Tensor &dirs)
 
std::tuple< torch::Tensor, torch::Tensor, torch::Tensor, torch::Tensor, torch::Tensor > hmesh::intersectsClosest (OptixAccelStructureWrapperCPP as, torch::Tensor origins, torch::Tensor directions)
 Find if ray hits any triangle and return ray index, triangle index, hit location and uv.
 
torch::Tensor hmesh::intersectsCount (OptixAccelStructureWrapperCPP as, torch::Tensor origins, torch::Tensor directions)
 
std::tuple< torch::Tensor, torch::Tensor, torch::Tensor > hmesh::intersectsLocation (OptixAccelStructureWrapperCPP as, torch::Tensor origins, torch::Tensor directions)