Cleanup: Move BVH utils to C++ namespace
This commit is contained in:
@@ -269,10 +269,11 @@ static void py_bvhtree_raycast_cb(void *userdata,
|
||||
float dist;
|
||||
|
||||
if (self->epsilon == 0.0f) {
|
||||
dist = bvhtree_ray_tri_intersection(ray, hit->dist, UNPACK3(tri_co));
|
||||
dist = blender::bke::bvhtree_ray_tri_intersection(ray, hit->dist, UNPACK3(tri_co));
|
||||
}
|
||||
else {
|
||||
dist = bvhtree_sphereray_tri_intersection(ray, self->epsilon, hit->dist, UNPACK3(tri_co));
|
||||
dist = blender::bke::bvhtree_sphereray_tri_intersection(
|
||||
ray, self->epsilon, hit->dist, UNPACK3(tri_co));
|
||||
}
|
||||
|
||||
if (dist >= 0 && dist < hit->dist) {
|
||||
|
||||
Reference in New Issue
Block a user