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

Method createPrimRefArrayMB

kernels/common/scene_points.h:292–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290 }
291
292 PrimInfo createPrimRefArrayMB(mvector<PrimRef>& prims, size_t itime, const range<size_t>& r, size_t k, unsigned int geomID) const
293 {
294 PrimInfo pinfo(empty);
295 for (size_t j = r.begin(); j < r.end(); j++) {
296 BBox3fa bounds = empty;
297 if (!buildBounds(j, itime, bounds))
298 continue;
299 const PrimRef prim(bounds, geomID, unsigned(j));
300 pinfo.add_center2(prim);
301 prims[k++] = prim;
302 }
303 return pinfo;
304 }
305
306 PrimInfo createPrimRefArrayMB(PrimRef* prims, const BBox1f& time_range, const range<size_t>& r, size_t k, unsigned int geomID) const
307 {

Callers 2

getProceduralAABBFunction · 0.45
createPrimRefArrayMBlurFunction · 0.45

Calls 6

add_center2Method · 0.80
intersectFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45
boundsMethod · 0.45

Tested by

no test coverage detected