Skip to content

Commit

Permalink
Also fuzz flat BVH nearest candidates.
Browse files Browse the repository at this point in the history
  • Loading branch information
finnbear committed Jan 7, 2025
1 parent b320380 commit c5f251e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fuzz/fuzz_targets/fuzz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,11 @@ impl<const D: usize> Workload<D> {
self.ray.mode.is_grid() && self.shapes.iter().all(|s| s.mode.is_grid());

// Check that these don't panic.
let flat_bvh = bvh.flatten();
bvh.assert_consistent(&self.shapes);
bvh.assert_tight();
bvh.nearest_candidates(&self.point.point(), &self.shapes);
let flat_bvh = bvh.flatten();
flat_bvh.nearest_candidates(&self.point.point(), &self.shapes);

let traverse = bvh
.traverse(&ray, &self.shapes)
Expand Down

0 comments on commit c5f251e

Please sign in to comment.