DHART
Loading...
Searching...
No Matches
MultiRT.h
Go to the documentation of this file.
1#pragma once
2
3#include <array>
4#include <HitStruct.h>
5
6namespace HF::RayTracer {
7 class EmbreeRayTracer;
8 class NanoRTRayTracer;
9
10 struct MultiRT {
11 using real_t = double;
12 using real3 = std::array<real_t, 3>;
13
14 enum RT_Type{
18 };
19
20 void* RayTracer;
22
23 inline MultiRT() {};
25
27
28 bool Occluded(const real3 & origin, const real3& direction, real_t distance);
29
30 HitStruct<real_t> Intersect(const real3& origin, const real3& direction);
31 };
32}
33
34
Cast rays to determine if and where they intersect geometry.
A wrapper for Intel's Embree Library.
A simple hit struct to carry all relevant information about hits.
Definition: HitStruct.h:7
bool Occluded(const real3 &origin, const real3 &direction, real_t distance)
Definition: MultiRT.cpp:49
HitStruct< real_t > Intersect(const real3 &origin, const real3 &direction)
Definition: MultiRT.cpp:40
std::array< real_t, 3 > real3
Definition: MultiRT.h:12