|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
#include "momentum/math/intersection.h"#include "momentum/math/mesh.h"#include "momentum/math/utility.h"#include <axel/Bvh.h>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. | |
| template bool | momentum::intersectFace< float > (const MeshT< float > &mesh, const std::vector< Vector3< float > > &faceNormals, const int32_t face0, const int32_t face1) |
| template bool | momentum::intersectFace< double > (const MeshT< double > &mesh, const std::vector< Vector3< double > > &faceNormals, const int32_t face0, const int32_t face1) |
| template std::vector< std::pair< int32_t, int32_t > > | momentum::intersectMeshBruteForce< float > (const MeshT< float > &mesh) |
| template std::vector< std::pair< int32_t, int32_t > > | momentum::intersectMeshBruteForce< double > (const MeshT< double > &mesh) |
| template std::vector< std::pair< int32_t, int32_t > > | momentum::intersectMesh< float > (const MeshT< float > &mesh) |
| template std::vector< std::pair< int32_t, int32_t > > | momentum::intersectMesh< double > (const MeshT< double > &mesh) |