BBH struct

An axis-aligned bounding box hierarchy acceleration structure.

Base classes

class SurfaceGroup
A collection of Surfaces grouped together.

Public functions

void build(const Scene* scene) override
Construct the BBH (must be called before intersect)
auto intersect(const Ray3f& ray, HitRecord& hit) const -> bool override
Intersect a ray against all surfaces registered with the Accelerator.