! calculates the linear bounds of the i'th primitive for the specified time range */
| 93 | |
| 94 | /*! calculates the linear bounds of the i'th primitive for the specified time range */ |
| 95 | __forceinline LBBox3fa linearBounds(size_t i, const BBox1f& dt) const { |
| 96 | if (!valid(i)) |
| 97 | return LBBox3fa(); |
| 98 | |
| 99 | LBBox3fa lbbox = nonlinearBounds(i, dt, time_range, fnumTimeSegments); |
| 100 | return lbbox; |
| 101 | } |
| 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 |