rtcGetSceneBounds(3)
π rtcGetSceneBounds(3) π
okay bestie, welcome to the Embree Ray Tracing Kernels 4 manual page for rtcGetSceneBounds, and no cap this one is a little bop π
β¨ NAME β¨
rtcGetSceneBounds β hands you the axis-aligned bounding box of the scene, like a little gift π
πΈ SYNOPSIS πΈ
#include <embree4/rtcore.h>
struct RTCORE_ALIGN(16) RTCBounds
{
float lower_x, lower_y, lower_z, align0;
float upper_x, upper_y, upper_z, align1;
};
void rtcGetSceneBounds(
RTCScene scene,
struct RTCBounds* bounds_o
);
π¦ DESCRIPTION π¦
so the rtcGetSceneBounds function is the one that asks a scene for its axis-aligned bounding box β the scene in question being the scene argument, obviously π
β and then it drops that bounding box right into the destination pointer you handed it, aka the bounds_o argument. that's it. that's the whole job. iconic.
the bounding box it stores is made up of a lower bound and an upper bound for each of the x, y, and z dimensions, and that whole shape is described by the RTCBounds structure. three dims, two bounds each, very demure, very mindful.
β οΈ two things you absolutely cannot skip, bestie: - the destination pointer you pass in must be aligned to 16 bytes. not vibes-aligned. actually aligned. 16. bytes. π - you can only call this function after committing the scene. if you call it before that, the result is undefined β and undefined behaviour is not the moment, fr fr. π
π EXIT STATUS π
if it fails, an error code gets set, and you can go query that code with rtcGetDeviceError. so if something smells off, that's where you go snooping π΅οΈβοΈ
π SEE ALSO π
- [rtcGetSceneLinearBounds]
- [rtcCommitScene]
- [rtcJoinCommitScene]
and that's the page, bestie π«Ά this was rtcGetSceneBounds(3) from the Embree Ray Tracing Kernels 4 manual β go forth, get those bounds, and stay 16-byte aligned β¨ππ
π¦ where this page comes from
- alpine 3.24: embree-doc 4.4.1-r0 Β· Apache-2.0
- arch rolling: embree 4.4.1-1 Β· Apache-2.0
- fedora 43: embree 4.4.1-1.fc43 Β· Apache-2.0
- fedora 44: embree 4.4.1-1.fc44 Β· Apache-2.0
- nixpkgs unstable: embree 4.4.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms