rtcGetGeo...hreadSafe(3)
β¨ rtcGetGeo...hreadSafe(3) β¨
okay bestie, welcome to the Embree Ray Tracing Kernels 3 manual, section 3, page rtcGetGeo...hreadSafe. yes the title is abbreviated with dots because the real name is a whole mouthful β it's rtcGetGeometryThreadSafe and we're gonna talk about her. π
π NAME π
rtcGetGeometryThreadSafe β returns the geometry bound to the specified geometry ID
πΈ SYNOPSIS πΈ
#include <embree3/rtcore.h>
RTCGeometry rtcGetGeometryThreadSafe(RTCScene scene, unsigned int geomID);
π¦ DESCRIPTION π¦
so, rtcGetGeometryThreadSafe hands you back the geometry that's bound to the geometry ID you pass in (that's the geomID argument, queen) inside the scene you specify (the scene argument, obviously π
). that's the whole gig.
important tho: this function just looks up the handle and does not increment the reference count. it's giving window shopping, not buying. so if you actually want to own that handle β like, take custody, be responsible for it β you gotta additionally call rtcRetainGeometry. no cap. π«Ά
and here's the vibe check: this function is thread safe, but it should NOT get used during rendering. i'm so serious. π if you need a fast non-thread-safe version to use during rendering, please use the [rtcGetGeometry] function instead. that's literally what she's there for.
π EXIT STATUS π
if things go wrong, NULL is returned and an error code gets set β you can go query that error code using rtcGetDeviceError. π
β SEE ALSO β
- [
rtcAttachGeometry] - [
rtcAttachGeometryByID] - [
rtcGetGeometry]
okay that's the whole page, bestie, you ate that reading session π
β¨ this little cutie comes from the Embree Ray Tracing Kernels 3 collection, section 3, and the page signs off as rtcGetGeo...hreadSafe(3) β mwah, go call rtcGetGeometry during render like a good main character ππΈ
π¦ where this page comes from
- epel 9: embree 3.13.5-4.el9 Β· Apache-2.0
- fedora 43: embree3 3.13.5-9.fc41 Β· Apache-2.0
- fedora 44: embree3 3.13.5-16.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms