MCPcopy Create free account
hub / github.com/blender/cycles / is_traceable

Method is_traceable

src/scene/object.cpp:277–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277bool 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
291uint Object::visibility_for_tracing() const
292{

Callers 6

add_referencesMethod · 0.45
buildMethod · 0.45
add_objectMethod · 0.45
refitMethod · 0.45
build_tlasMethod · 0.45
build_bvhMethod · 0.45

Calls 4

zero_float3Function · 0.85
validMethod · 0.80
is_lightMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected