| 275 | } |
| 276 | |
| 277 | bool Object::is_traceable() const |
| 278 | { |
| 279 | /* Not supported for lights yet. */ |
| 280 | if (geometry->is_light()) { |
| 281 | return false; |
| 282 | } |
| 283 | /* Mesh itself can be empty,can skip all such objects. */ |
| 284 | if (!bounds.valid() || bounds.size() == zero_float3()) { |
| 285 | return false; |
| 286 | } |
| 287 | /* TODO(sergey): Check for mesh vertices/curves. visibility flags. */ |
| 288 | return true; |
| 289 | } |
| 290 | |
| 291 | uint Object::visibility_for_tracing() const |
| 292 | { |
no test coverage detected