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

Method buildBounds

kernels/common/scene_instance_array.h:104–112  ·  view source on GitHub ↗

! calculates the build bounds of the i'th item, if it's valid */

Source from the content-addressed store, hash-verified

102
103 /*! calculates the build bounds of the i'th item, if it's valid */
104 __forceinline bool buildBounds(size_t i, BBox3fa* bbox = nullptr) const
105 {
106 if (!valid(i))
107 return false;
108
109 const BBox3fa b = bounds(i);
110 if (bbox) *bbox = b;
111 return isvalid(b);
112 }
113
114 /*! calculates the build bounds of the i'th item at the itime'th time segment, if it's valid */
115 __forceinline bool buildBounds(size_t i, size_t itime, BBox3fa& bbox) const

Callers

nothing calls this directly

Calls 4

validFunction · 0.70
boundsFunction · 0.50
isvalidFunction · 0.50
boundsMethod · 0.45

Tested by

no test coverage detected