rtcNewBVH(3)

bestie, welcome to rtcNewBVH(3) from the Embree Ray Tracing Kernels 4 manual. it's giving 'create a new BVH object' and honestly? iconic. πŸ’–

✨ NAME ✨

rtcNewBVH β€” creates a new BVH object. that's the whole name, no notes. periodt. πŸ’…

πŸ“œ SYNOPSIS πŸ“œ

okay so here's the include and the signature, copy-paste ready:

#include <embree4/rtcore.h>

RTCBVH rtcNewBVH(RTCDevice device);

πŸ’… DESCRIPTION πŸ’…

okay so rtcNewBVH literally creates a new BVH object and returns a handle to this BVH. that BVH object is reference counted with an initial reference count of 1. the handle can be released using the rtcReleaseBVH API call. no cap. πŸ’–

the BVH object can be used to build a BVH in a user-specified format over user-specified primitives. see the documentation of the rtcBuildBVH call for more details. iykyk. πŸ¦‹

🚨 EXIT STATUS 🚨

on failure an error code is set that can be queried using rtcGetDeviceError. so if it flops, that's your vibe check. 😭

πŸ‘€ SEE ALSO πŸ‘€

  • [rtcRetainBVH]
  • [rtcReleaseBVH]
  • [rtcBuildBVH]

and that's the tea, bestie. source/version: Embree Ray Tracing Kernels 4. date: not listed in the footer, but the footer says rtcNewBVH(3). stay iconic and keep your reference counts close. πŸ’…βœ¨πŸ«Ά

πŸ“¦ where this page comes from