alecjacobson / computer-graphics-bounding-volume-hierarchy

Computer Graphics Assignment about Bounding Volume Hierarchies
122 stars 43 forks source link

triangle-triangle intersection algorithm #53

Open shimismith opened 4 years ago

shimismith commented 4 years ago

Is it ok to implement an algorithm from a paper for triangle-triangle intersection or should we develop our own simpler approach?

abhimadan commented 4 years ago

Either is fine, though you should make sure that your triangle-triangle intersection works reasonably well, since it prevents confusion when debugging your BVH intersection code. For example, if it says that two triangles extremely far apart actually intersect, then your BVH-optimized version will not detect this. That wouldn't be a bug in your BVH code, but in your triangle-triangle intersection code.