file
triangle.hClass Triangle.
Classes
- class Triangle
- An instance of a triangle for a given face in a mesh.
Functions
- auto single_triangle_intersect(const Ray3f& ray, const Vec3f& v0, const Vec3f& v1, const Vec3f& v2, const Vec3f* n0, const Vec3f* n1, const Vec3f* n2, const Vec2f& t0, const Vec2f& t1, const Vec2f& t2, HitRecord& hit, const Material* material = nullptr, const Surface* surface = nullptr, const Mesh* mesh = nullptr) -> bool
- Intersect a ray with a single triangle.