Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
intersection.h File Reference

Go to the source code of this file.

Namespaces

namespace  momentum

Functions

template<typename T>
bool momentum::intersectFace (const MeshT< T > &mesh, const std::vector< Vector3< T > > &faceNormals, int32_t face0, int32_t face1)
 Tests whether two given triangle faces of a mesh intersect with each other.
template<typename T>
std::vector< std::pair< int32_t, int32_t > > momentum::intersectMeshBruteForce (const MeshT< T > &mesh)
 Tests if the mesh self-intersects anywhere and returns all intersecting face pairs using a brute-force O(n^2) pairwise check over all faces.
template<typename T>
std::vector< std::pair< int32_t, int32_t > > momentum::intersectMesh (const MeshT< T > &mesh)
 Tests if the mesh self-intersects anywhere and returns all intersecting face pairs using a BVH (bounding volume hierarchy) acceleration structure.