alecjacobson/computer-graphics-bounding-volume-hierarchy

ray_intersect_triangle_mesh_brute_force clarification

CalinArdelean opened this issue · 3 comments

Does this mean V stores x, y, and z positions of every vertex?
// V #V by 3 list of mesh vertex positions
// F #F by 3 list of triangle indices into rows of V
Does this mean F stores indices of vertices in V, with 3 vertices in a row for each face?

It took me a while to figure out. It means each row of F contains three indices. Once you get these indices, then
// F #F by 3 list of triangle indices into rows of V

Yes, you're both correct.