libs/yocto/yocto_scene.cpp
// Intersect ray with a bvh->
Intersect ray with a bvh->
Intersect ray with a bvh - >
static bool intersect_instance_bvh(const scene_instance* instance,
    const ray3f& ray, int& element, vec2f& uv, float& distance, bool find_any,
    bool non_rigid_frames) {
  auto inv_ray = transform_ray(inverse(instance->frame, non_rigid_frames), ray);
  return intersect_shape_bvh(
      instance->shape, inv_ray, element, uv, distance, find_any);
}
static bool intersect_instance_bvh ( const scene_instance * instance , const ray3f & ray , int & element , vec2f & uv , float & distance , bool find_any , bool non_rigid_frames ) { auto inv_ray = transform_ray ( inverse ( instance -> frame , non_rigid_frames ) , ray ) ; return intersect_shape_bvh ( instance -> shape , inv_ray , element , uv , distance , find_any ) ; }
Intersect ray with a bvh->
Intersect ray with a bvh - >