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

Method createPrimRefArrayMB

kernels/common/scene_instance.h:255–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253 }
254
255 PrimInfo createPrimRefArrayMB(mvector<PrimRef>& prims, size_t itime, const range<size_t>& r, size_t k, unsigned int geomID) const
256 {
257 assert(r.begin() == 0);
258 assert(r.end() == 1);
259
260 PrimInfo pinfo(empty);
261 BBox3fa b = empty;
262 if (!buildBounds(0,&b)) return pinfo;
263 // if (!valid(0,range<size_t>(itime))) return pinfo;
264 // const PrimRef prim(linearBounds(0,itime).bounds(),geomID,unsigned(0));
265 const PrimRef prim(b,geomID,unsigned(0));
266 pinfo.add_center2(prim);
267 prims[k++] = prim;
268 return pinfo;
269 }
270
271 PrimInfo createPrimRefArrayMB(PrimRef* prims, const BBox1f& time_range, const range<size_t>& r, size_t k, unsigned int geomID) const
272 {

Callers

nothing calls this directly

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