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

Method bounds

kernels/common/scene_instance.h:37–44  ·  view source on GitHub ↗

calculates the (correct) interpolated bounds */

Source from the content-addressed store, hash-verified

35
36 /* calculates the (correct) interpolated bounds */
37 __forceinline BBox3fa bounds(size_t itime0, size_t itime1, float f) const
38 {
39 if (unlikely(gsubtype == GTY_SUBTYPE_INSTANCE_QUATERNION))
40 return xfmBounds(slerp(local2world[itime0], local2world[itime1], f),
41 lerp(getObjectBounds(itime0), getObjectBounds(itime1), f));
42 return xfmBounds(lerp(local2world[itime0], local2world[itime1], f),
43 lerp(getObjectBounds(itime0), getObjectBounds(itime1), f));
44 }
45
46 public:
47 virtual void setNumTimeSteps (unsigned int numTimeSteps) override;

Callers 2

buildBoundsMethod · 0.45
createPrimRefArrayMBMethod · 0.45

Calls 4

xfmBoundsFunction · 0.85
slerpFunction · 0.50
lerpFunction · 0.50

Tested by

no test coverage detected