1 #ifndef MOBILERT_ACCELERATORS_NAIVE_HPP 2 #define MOBILERT_ACCELERATORS_NAIVE_HPP 28 explicit Naive() =
default;
30 explicit Naive(::std::vector<T> &&primitives);
58 LOG_INFO(
"Built Native for: ",
typeid(T).name());
68 this->primitives_.clear();
69 ::std::vector<T> {}.swap(this->primitives_);
86 const float lastDist {intersection.
length_};
87 for (T &primitive : this->primitives_) {
88 intersection = primitive.intersect(intersection);
106 intersection = intersect(intersection);
121 intersection = intersect(intersection);
133 return this->primitives_;
138 #endif //MOBILERT_ACCELERATORS_NAIVE_HPP Ray ray_
Definition: Intersection.hpp:27
Intersection trace(Intersection intersection)
Definition: Naive.hpp:105
#define LOG_INFO(...)
Definition: Utils.hpp:43
Intersection shadowTrace(Intersection intersection)
Definition: Naive.hpp:120
float length_
Definition: Intersection.hpp:19
Definition: Intersection.hpp:14
~Naive()
Definition: Naive.hpp:67
const ::std::vector< T > & getPrimitives() const
Definition: Naive.hpp:132
bool shadowTrace_
Definition: Ray.hpp:45
Naive & operator=(const Naive &naive)=delete
::std::vector< T > primitives_
Definition: Naive.hpp:22
Intersection intersect(Intersection intersection)
Definition: Naive.hpp:85