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

Method createPrimRefArray

kernels/common/scene_points.h:278–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276 }
277
278 PrimInfo createPrimRefArray(PrimRef* prims, const range<size_t>& r, size_t k, unsigned int geomID) const
279 {
280 PrimInfo pinfo(empty);
281 for (size_t j = r.begin(); j < r.end(); j++) {
282 BBox3fa bounds = empty;
283 if (!buildBounds(j, &bounds))
284 continue;
285 const PrimRef prim(bounds, geomID, unsigned(j));
286 pinfo.add_center2(prim);
287 prims[k++] = prim;
288 }
289 return pinfo;
290 }
291
292 PrimInfo createPrimRefArrayMB(mvector<PrimRef>& prims, size_t itime, const range<size_t>& r, size_t k, unsigned int geomID) const
293 {

Callers 4

getProceduralAABBFunction · 0.45
createPrimRefArrayFunction · 0.45
createPrimRefArrayGridsFunction · 0.45

Calls 3

add_center2Method · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected