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

Method createPrimRefArray

kernels/common/scene_instance_array.h:325–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323 }
324
325 PrimInfo createPrimRefArray(PrimRef* prims, const range<size_t>& r, size_t k, unsigned int geomID) const
326 {
327 PrimInfo pinfo(empty);
328 for (size_t j = r.begin(); j < r.end(); j++) {
329 BBox3fa bounds = empty;
330 if (!buildBounds(j, &bounds) || !valid(j))
331 continue;
332 const PrimRef prim(bounds, geomID, unsigned(j));
333 pinfo.add_center2(prim);
334 prims[k++] = prim;
335 }
336 return pinfo;
337 }
338
339 PrimInfo createPrimRefArrayMB(mvector<PrimRef>& prims, size_t itime, const range<size_t>& r, size_t k, unsigned int geomID) const
340 {

Callers

nothing calls this directly

Calls 4

add_center2Method · 0.80
validFunction · 0.70
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected