1rtcGetSceneBounds(3) Embree Ray Tracing Kernels 3 rtcGetSceneBounds(3)
2
3
4
5 NAME
6 rtcGetSceneBounds - returns the axis-aligned bounding box of the scene
7
8 SYNOPSIS
9 #include <embree3/rtcore.h>
10
11 struct RTCORE_ALIGN(16) RTCBounds
12 {
13 float lower_x, lower_y, lower_z, align0;
14 float upper_x, upper_y, upper_z, align1;
15 };
16
17 void rtcGetSceneBounds(
18 RTCScene scene,
19 struct RTCBounds* bounds_o
20 );
21
22 DESCRIPTION
23 The rtcGetSceneBounds function queries the axis-aligned bounding box of
24 the specified scene (scene argument) and stores that bounding box to
25 the provided destination pointer (bounds_o argument). The stored
26 bounding box consists of lower and upper bounds for the x, y, and z
27 dimensions as specified by the RTCBounds structure.
28
29 The provided destination pointer must be aligned to 16 bytes. The
30 function may be invoked only after committing the scene; otherwise the
31 result is undefined.
32
33 EXIT STATUS
34 On failure an error code is set that can be queried using rtcGetDe‐
35 viceError.
36
37 SEE ALSO
38 [rtcGetSceneLinearBounds], [rtcCommitScene], [rtcJoinCommitScene]
39
40
41
42 rtcGetSceneBounds(3)