| 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 | { |
no test coverage detected