dilevin / computer-graphics-bounding-volume-hierarchy

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

Seg Fault in intersection #58

Open BlackSpade741 opened 4 years ago

BlackSpade741 commented 4 years ago

So my program seems to work perfectly and is able to find all the pairs, but this seg fault always pops up during the narrow phase, and the only thing in the backtrace is the main stack. Not sure what the problem is, I've checked the objects I put in the pairs list, and I've confirmed that it's not a problem in triangle-triangle intersection (I tried returning true at the beginning of the function).

Would appreciate some very late help! I am using SSH on CDF, if that helps.

image