Cleanup: Move BVH utils to C++ namespace

This commit is contained in:
Hans Goudey
2024-12-17 18:22:00 -05:00
committed by Hans Goudey
parent 87259ba9f2
commit bcfe4c34da
39 changed files with 225 additions and 201 deletions

View File

@@ -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) {