rtcReleaseBVH(3) Embree Ray Tracing Kernels 4 rtcReleaseBVH(3)

rtcReleaseBVH - decrements the BVH reference count

#include <embree4/rtcore.h>
void rtcReleaseBVH(RTCBVH bvh);

BVH objects are reference counted. The rtcReleaseBVH function decrements the reference count of the passed BVH object (bvh argument). When the reference count falls to 0, the BVH gets destroyed.

On failure an error code is set that can be queried using rtcGetDeviceError.

[rtcNewBVH], [rtcRetainBVH]