This repository has been archived on 2024-12-30. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
2024CG-project-render/lab1/TriangleSoup.cpp
Tibo De Peuter d9cf26902e
Some checks failed
CMake / build (zip, zip, [self-hosted Linux], raytracing, ux) (push) Has been cancelled
CMake / build (zip, zip, [self-hosted Windows], Release/raytracing.exe, win) (push) Has been cancelled
chore: Cleanup
2024-10-25 17:50:44 +02:00

10 lines
276 B
C++

#include "TriangleSoup.h"
#include "Ray.h"
// Hint
#include "first_hit.h"
bool TriangleSoup::intersect(
const Ray &ray, const double min_t, double &t, Eigen::Vector3d &n) const {
int hit_id; /* Ignored. */
return first_hit(ray, min_t, triangles, hit_id, t, n);
}