src/surfaces/triangle.cpp file

Triangle Surface.

Functions

auto single_triangle_intersect(const Ray3f& ray, const Vec3f& p0, const Vec3f& p1, const Vec3f& p2, const Vec3f* n0, const Vec3f* n1, const Vec3f* n2, const Vec2f* t0, const Vec2f* t1, const Vec2f* t2, HitInfo& hit, const Material* material) -> bool
Intersect a ray with a single triangle.