Professsor Ren said that this was because the surface normal has only one non-zero value in x, y, z. A little confused because then I want to say the vector is (1, 0, 0) by symmetry, but that vector is parallel to the x-axis.
briana-jin-zhang
So what is the vector? Are we supposed to be just looking at it in 2D instead?
aravind00r
(1,0,0) is parallel to the x-axis, so it would be the normal vector for a y-z plane. Planes are 3D so they are aligned with two axes. For the 2D case, where our "plane" but in this case, 2D line, is aligned to the y-axis, our normal is (1,0) or (-1, 0).
Professsor Ren said that this was because the surface normal has only one non-zero value in x, y, z. A little confused because then I want to say the vector is (1, 0, 0) by symmetry, but that vector is parallel to the x-axis.
So what is the vector? Are we supposed to be just looking at it in 2D instead?
(1,0,0) is parallel to the x-axis, so it would be the normal vector for a y-z plane. Planes are 3D so they are aligned with two axes. For the 2D case, where our "plane" but in this case, 2D line, is aligned to the y-axis, our normal is (1,0) or (-1, 0).
https://www.rose-hulman.edu/class/csse/csse451/AABB/
This was a good explanation of the ray-axis algorithm