bool intersectFace(const MeshT< T > &mesh, const std::vector< Vector3< T > > &faceNormals, const int32_t face0, const int32_t face1)
Tests whether two given triangle faces of a mesh intersect with each other.
std::vector< std::pair< int32_t, int32_t > > intersectMeshBruteForce(const MeshT< T > &mesh)
Tests if the mesh self-intersects anywhere and returns all intersecting face pairs using a brute-forc...
std::vector< std::pair< int32_t, int32_t > > intersectMesh(const MeshT< T > &mesh)
Tests if the mesh self-intersects anywhere and returns all intersecting face pairs using a BVH (bound...
A generic mesh representation with support for vertices, faces, lines, and texture coordinates.