|
group2 0.1.0
CSE 125 Group 2
|
A triangle mesh with BVH acceleration for collision queries. More...
#include <SweptCollision.hpp>
Public Attributes | |
| std::vector< glm::vec3 > | vertices |
| All vertex positions (world space, scaled). | |
| std::vector< uint32_t > | indices |
| Triangle indices (3 per triangle). | |
| std::vector< BVHNode > | bvhNodes |
| Flat BVH node array. | |
| std::vector< uint32_t > | triIndices |
| Permutation: BVH leaf ranges → triangle indices. | |
| glm::vec3 | boundsMin {0.0f} |
| Whole-mesh AABB min. | |
| glm::vec3 | boundsMax {0.0f} |
| Whole-mesh AABB max. | |
A triangle mesh with BVH acceleration for collision queries.
Built once at load time via buildTriMeshBVH(). The BVH is a flat array binary tree; leaves hold up to 4 triangles. triIndices is a permutation array mapping BVH leaf ranges to triangle indices in indices.
| glm::vec3 physics::WorldTriMesh::boundsMax {0.0f} |
Whole-mesh AABB max.
| glm::vec3 physics::WorldTriMesh::boundsMin {0.0f} |
Whole-mesh AABB min.
| std::vector<BVHNode> physics::WorldTriMesh::bvhNodes |
Flat BVH node array.
| std::vector<uint32_t> physics::WorldTriMesh::indices |
Triangle indices (3 per triangle).
| std::vector<uint32_t> physics::WorldTriMesh::triIndices |
Permutation: BVH leaf ranges → triangle indices.
| std::vector<glm::vec3> physics::WorldTriMesh::vertices |
All vertex positions (world space, scaled).