! calculates the build bounds of the i'th item, if it's valid */
| 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 |