.\" Automatically generated by Pandoc 3.1.3 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "rtcGetGeometryThreadSafe" "3" "" "" "Embree Ray Tracing Kernels 4" .hy .SS NAME .IP .nf \f[C] rtcGetGeometryThreadSafe - returns the geometry bound to the specified geometry ID \f[R] .fi .SS SYNOPSIS .IP .nf \f[C] #include RTCGeometry rtcGetGeometryThreadSafe(RTCScene scene, unsigned int geomID); \f[R] .fi .SS DESCRIPTION .PP The \f[V]rtcGetGeometryThreadSafe\f[R] function returns the geometry that is bound to the specified geometry ID (\f[V]geomID\f[R] argument) for the specified scene (\f[V]scene\f[R] argument). This function just looks up the handle and does \f[I]not\f[R] increment the reference count. If you want to get ownership of the handle, you need to additionally call \f[V]rtcRetainGeometry\f[R]. .PP This function is thread safe and should NOT get used during rendering. If you need a fast non-thread safe version during rendering please use the [rtcGetGeometry] function. .SS EXIT STATUS .PP On failure \f[V]NULL\f[R] is returned and an error code is set that can be queried using \f[V]rtcGetDeviceError\f[R]. .SS SEE ALSO .PP [rtcAttachGeometry], [rtcAttachGeometryByID], [rtcGetGeometry]