MCPcopy Create free account
hub / github.com/RenderKit/embree / rtcGetSceneBounds

Function rtcGetSceneBounds

kernels/common/rtcore.cpp:399–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397 }
398
399 RTC_API void rtcGetSceneBounds(RTCScene hscene, RTCBounds* bounds_o)
400 {
401 Scene* scene = (Scene*) hscene;
402 RTC_CATCH_BEGIN;
403 RTC_TRACE(rtcGetSceneBounds);
404 RTC_VERIFY_HANDLE(hscene);
405 if (scene->isModified()) throw_RTCError(RTC_ERROR_INVALID_OPERATION,"scene not committed");
406 BBox3fa bounds = scene->bounds.bounds();
407 bounds_o->lower_x = bounds.lower.x;
408 bounds_o->lower_y = bounds.lower.y;
409 bounds_o->lower_z = bounds.lower.z;
410 bounds_o->align0 = 0;
411 bounds_o->upper_x = bounds.upper.x;
412 bounds_o->upper_y = bounds.upper.y;
413 bounds_o->upper_z = bounds.upper.z;
414 bounds_o->align1 = 0;
415 RTC_CATCH_END2(scene);
416 }
417
418 RTC_API void rtcGetSceneLinearBounds(RTCScene hscene, RTCLinearBounds* bounds_o)
419 {

Callers 3

runMethod · 0.85
runMethod · 0.85
forest_device.cppFile · 0.85

Calls 2

isModifiedMethod · 0.80
boundsMethod · 0.45

Tested by

no test coverage detected