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

Function knnQuery

tutorials/voronoi/voronoi_device.cpp:109–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void knnQuery(Vec3f const& q, float radius, KNNResult* result)
110{
111 RTCPointQuery query;
112 query.x = q.x;
113 query.y = q.y;
114 query.z = q.z;
115 query.radius = radius;
116 query.time = 0.f;
117 RTCPointQueryContext context;
118 rtcInitPointQueryContext(&context);
119 rtcPointQuery(data.scene, &query, &context, pointQueryFunc, (void*)result);
120}
121
122void createPoints (TutorialData& data)
123{

Callers 2

renderTileStandardFunction · 0.85
device_renderFunction · 0.85

Calls 2

rtcInitPointQueryContextFunction · 0.85
rtcPointQueryFunction · 0.85

Tested by

no test coverage detected