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

Method getObject

kernels/common/scene_instance_array.h:189–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187 }
188
189 inline Accel* getObject(size_t i) const {
190 if (object) {
191 return object;
192 }
193
194 assert(objects);
195 assert(i < numPrimitives);
196 if (object_ids[i] == (unsigned int)(-1))
197 return nullptr;
198
199 assert(object_ids[i] < numObjects);
200 return objects[object_ids[i]];
201 }
202
203 private:
204

Callers 4

intersect_instanceFunction · 0.80
intersectMethod · 0.80
occludedMethod · 0.80
pointQueryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected