group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
physics::BVHNode Struct Reference

A single BVH node for spatial acceleration of triangle meshes. More...

#include <SweptCollision.hpp>

Public Attributes

glm::vec3 boundsMin
 AABB minimum corner.
glm::vec3 boundsMax
 AABB maximum corner.
int leftFirst
 If leaf: index into triIndices[]. If interior: left child index.
int count
 >0 → leaf with count triangles. 0 → interior node.

Detailed Description

A single BVH node for spatial acceleration of triangle meshes.

Member Data Documentation

◆ boundsMax

glm::vec3 physics::BVHNode::boundsMax

AABB maximum corner.

◆ boundsMin

glm::vec3 physics::BVHNode::boundsMin

AABB minimum corner.

◆ count

int physics::BVHNode::count

>0 → leaf with count triangles. 0 → interior node.

◆ leftFirst

int physics::BVHNode::leftFirst

If leaf: index into triIndices[]. If interior: left child index.


The documentation for this struct was generated from the following file: