| 107 | } |
| 108 | |
| 109 | void 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 | |
| 122 | void createPoints (TutorialData& data) |
| 123 | { |
no test coverage detected