1rtcGetGeometry(3) Embree Ray Tracing Kernels 3 rtcGetGeometry(3)
2
3
4
5 NAME
6 rtcGetGeometry - returns the geometry bound to
7 the specified geometry ID
8
9 SYNOPSIS
10 #include <embree3/rtcore.h>
11
12 RTCGeometry rtcGetGeometry(RTCScene scene, unsigned int geomID);
13
14 DESCRIPTION
15 The rtcGetGeometry function returns the geometry that is bound to the
16 specified geometry ID (geomID argument) for the specified scene (scene
17 argument). This function just looks up the handle and does not incre‐
18 ment the reference count. If you want to get ownership of the handle,
19 you need to additionally call rtcRetainGeometry.
20
21 This function is not thread safe and thus can be used during rendering.
22 However, it is generally recommended to store the geometry handle in‐
23 side the application’s geometry representation and look up the geometry
24 handle from that representation directly.
25
26 If you need a thread safe version of this function please use [rtcGet‐
27 GeometryThreadSafe].
28
29 EXIT STATUS
30 On failure NULL is returned and an error code is set that can be
31 queried using rtcGetDeviceError.
32
33 SEE ALSO
34 [rtcAttachGeometry], [rtcAttachGeometryByID], [rtcGetGeometryThread‐
35 Safe]
36
37
38
39 rtcGetGeometry(3)