|
Lagrange
|
Compute intersecting facet pairs in a mesh using BVH acceleration. More...
Functions | |
| template<typename Scalar, typename Index> | |
| AdjacencyList< Index > | compute_intersecting_pairs (const SurfaceMesh< Scalar, Index > &mesh) |
| Compute all pairs of intersecting facets in a mesh using an AABB tree for acceleration. | |
Compute intersecting facet pairs in a mesh using BVH acceleration.
| AdjacencyList< Index > compute_intersecting_pairs | ( | const SurfaceMesh< Scalar, Index > & | mesh | ) |
#include <lagrange/bvh/compute_intersecting_pairs.h>
Compute all pairs of intersecting facets in a mesh using an AABB tree for acceleration.
Detects facet pairs whose interiors overlap using exact geometric predicates. All facet pairs (including vertex- and edge-adjacent ones) are tested geometrically. Contacts at shared vertices or edges do not count as intersections; only interior overlaps are reported.
| [in] | mesh | The input mesh. Must be a triangle mesh (only triangular facets). |
| Scalar | Mesh scalar type. |
| Index | Mesh index type. |
| std::runtime_error | if the mesh is not a triangle mesh or not 3D. |