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

Method createPrimRefMBArray

kernels/common/scene_points.h:323–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321 }
322
323 PrimInfoMB createPrimRefMBArray(mvector<PrimRefMB>& prims,
324 const BBox1f& t0t1,
325 const range<size_t>& r,
326 size_t k,
327 unsigned int geomID) const
328 {
329 PrimInfoMB pinfo(empty);
330 for (size_t j = r.begin(); j < r.end(); j++) {
331 if (!valid(j, timeSegmentRange(t0t1)))
332 continue;
333 const PrimRefMB prim(linearBounds(j, t0t1), this->numTimeSegments(), this->time_range, this->numTimeSegments(), geomID, unsigned(j));
334 pinfo.add_primref(prim);
335 prims[k++] = prim;
336 }
337 return pinfo;
338 }
339
340 BBox3fa vbounds(size_t i) const
341 {

Callers 2

Calls 5

validFunction · 0.70
timeSegmentRangeFunction · 0.70
beginMethod · 0.45
endMethod · 0.45
add_primrefMethod · 0.45

Tested by

no test coverage detected