dilevin / computer-graphics-bounding-volume-hierarchy

Computer Graphics Assignment about Bounding Volume Hierarchies
6 stars 7 forks source link

LINK1104 error #118

Closed jjackzhu closed 1 month ago

jjackzhu commented 1 month ago

I am also getting the same error shown in #106 Screenshot 2024-10-08 170241

I did a fresh install of the repo and I still get this error everytime I try to build the project.

Zhecheng-Wang commented 1 month ago

I would try the two solutions mentioned in this StackOverflow post.

jjackzhu commented 1 month ago

I managed to successfully create the build by readding /Debug/ to the end of the output directory path in properties, and now I am getting this error in triangle_triangle_intersection and these warnings:

Screenshot 2024-10-08 182440 Screenshot 2024-10-08 182808 The error seems to go away when i comment out the two lines Eigen::RowVector3d normal1 = (A1 - A0).cross(A2 - A0); and Eigen::RowVector3d normal1 = (B1 - B0).cross(B2 - B0); I have tried adding #include <Eigen/LU> and #include <Eigen/Core> to the top of the file but nothing changes.

Zhecheng-Wang commented 1 month ago

Looking at the template Eigen<3,1>, it should a 3x1 matrix (so a 3D vector). So when you cross Vector with Vector it returns Vector, not RowVector.

Zhecheng-Wang commented 1 month ago

Also did you include <Eigen/Dense>?

jjackzhu commented 1 month ago

thank you, that helped fix the error!