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

Function rtcPointQuery

kernels/common/rtcore.cpp:498–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496 }
497
498 RTC_API bool rtcPointQuery(RTCScene hscene, RTCPointQuery* query, RTCPointQueryContext* userContext, RTCPointQueryFunction queryFunc, void* userPtr)
499 {
500 Scene* scene = (Scene*) hscene;
501 RTC_CATCH_BEGIN;
502 RTC_TRACE(rtcPointQuery);
503#if defined(DEBUG)
504 RTC_VERIFY_HANDLE(hscene);
505 RTC_VERIFY_HANDLE(userContext);
506 if (scene->isModified()) throw_RTCError(RTC_ERROR_INVALID_OPERATION,"scene got not committed");
507 if (((size_t)query) & 0x0F) throw_RTCError(RTC_ERROR_INVALID_ARGUMENT, "query not aligned to 16 bytes");
508 if (((size_t)userContext) & 0x0F) throw_RTCError(RTC_ERROR_INVALID_ARGUMENT, "context not aligned to 16 bytes");
509#endif
510
511 return pointQuery(scene, query, userContext, queryFunc, userPtr);
512 RTC_CATCH_END2_FALSE(scene);
513 }
514
515 RTC_API bool rtcPointQuery4 (const int* valid, RTCScene hscene, RTCPointQuery4* query, struct RTCPointQueryContext* userContext, RTCPointQueryFunction queryFunc, void** userPtrN)
516 {

Callers 7

rtcTraversablePointQueryFunction · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
knnQueryFunction · 0.85
instanceClosestPointFuncFunction · 0.85
updateGeometryAndQueriesFunction · 0.85

Calls 2

pointQueryFunction · 0.85
isModifiedMethod · 0.80

Tested by

no test coverage detected