dhart.raytracer.isValidBVH

dhart.raytracer.isValidBVH(bvh: object) bool

Check if the given object is actually a BVH before sending the pointer to C++

If this check were not performed, the pointer from any object with the .pointer attribute could be sent to C++ with catastrophic results. This check must be performed to ensure that every pointer sent to C++ will lead to a valid and fully initialized Raytracer

Raises:

TypeError – The passed object was not a valid bvh