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

Method createPrimRefMBArray

kernels/common/scene_quad_mesh.h:362–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360 }
361
362 PrimInfoMB createPrimRefMBArray(mvector<PrimRefMB>& prims, const BBox1f& t0t1, const range<size_t>& r, size_t k, unsigned int geomID) const
363 {
364 PrimInfoMB pinfo(empty);
365 for (size_t j=r.begin(); j<r.end(); j++)
366 {
367 if (!valid(j, timeSegmentRange(t0t1))) continue;
368 const PrimRefMB prim(linearBounds(j,t0t1),this->numTimeSegments(),this->time_range,this->numTimeSegments(),geomID,unsigned(j));
369 pinfo.add_primref(prim);
370 prims[k++] = prim;
371 }
372 return pinfo;
373 }
374 };
375 }
376

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected