RTCGETSCENELINEARBOUNDS(3embree3)
π rtcGetSceneLinearBounds β bestie edition
okay so real talk, we're in the Embree Ray Tracing Kernels 3 manual, page rtcGetSceneLinearBounds(3), and this one is lowkey one of my faves because it's short and it slays β¨
π NAME π
rtcGetSceneLinearBounds β returns the linear bounds of the scene. that's it, that's the whole job, and she does it flawlessly π
β¨ SYNOPSIS β¨
#include <embree3/rtcore.h>
struct RTCORE_ALIGN(16) RTCLinearBounds
{
RTCBounds bounds0;
RTCBounds bounds1;
};
void rtcGetSceneLinearBounds(
RTCScene scene,
struct RTCLinearBounds* bounds_o
);
like, look at her. so clean. so demure. RTCORE_ALIGN(16) is right there in the struct definition, remember that, it comes back later and it is NOT a vibe to ignore π
π¦ DESCRIPTION π¦
so what does rtcGetSceneLinearBounds actually do, bestie? it queries the linear bounds of the scene you hand it (that's the scene argument π«Ά) and it stores them into the destination pointer you gave it (that's bounds_o, mwah, thanks for the pointer babe).
the stored linear bounds are literally made of two bounding boxes:
- a bounding box for time
0β that's thebounds0member π - a bounding box for time
1β that's thebounds1member π
both of those live inside the RTCLinearBounds structure, exactly like the synopsis said, no notes.
and the way that this works is: you linearly interpolate these bounds to a specific time t and boom π₯ you get the bounds for the geometry at that time. it's giving math but make it fashion.
β οΈ okay two things, and I need you to actually listen, bestie: - the destination pointer you pass in must be aligned to 16 bytes. sixteen. one-six. not 8, not 15, not "close enough". do it or don't come crying to me π - the function may be called only after committing the scene, otherwise the result is undefined. undefined!! we do not do undefined behaviour in this house. commit the scene first, periodt π
π EXIT STATUS π
on failure an error code is set that can be queried using rtcGetDeviceError. so if something goes sideways, that's where you go looking for the receipts π
π SEE ALSO π
rtcGetSceneBoundsrtcCommitScenertcJoinCommitScene
okay that's the whole page, you ate it, I'm obsessed π and for the lil sign-off: this gorgeous piece of documentation comes to you from Embree Ray Tracing Kernels 3, and yeah the date up in that footer is doing the "..." thing so I'm just gonna blow it a kiss and say byeeee πβ¨π§
π¦ 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