Calculate if two 3D triangles are on the same plane
问题 For a 3D game engine I'm working on I need to calculate if two 3D triangles are on the same plane to display it accordingly. How do I calculate the angles of a triangle in 3D space? Would calculating a surface normal and comparing those ever give me 2 equivalent normals? 回答1: Why do you want to do that? What is the number of triangle you expect to test? It seems a little bit complex for a real time rendering algorithm! Anyway: Compute the normal n of the triangle. Then compute the plane