Describe the bug
The visualizer ignores the rotations component when computing the bounding box of the batch of boxes.
|
let centers = clamped_or(data.centers, &Position3D::ZERO); |
|
let rotations = clamped_or(data.rotations, &Rotation3D::IDENTITY); |
|
for (i, (half_size, ¢er, rotation, radius, &color)) in |
|
itertools::izip!(data.half_sizes, centers, rotations, radii, &colors).enumerate() |
|
{ |
|
obj_space_bounding_box.extend(half_size.box_min(center)); |
|
obj_space_bounding_box.extend(half_size.box_max(center)); |
To Reproduce
- Open an example with rotated boxes, such as
cargo run --bin snippets -- box3d_batch
- Click on “Show bounding box”
- Observe the boxes escaping the box.
Screenshots

Rerun version
Commit 05853c6
Describe the bug
The visualizer ignores the
rotationscomponent when computing the bounding box of the batch of boxes.rerun/crates/viewer/re_space_view_spatial/src/visualizers/boxes3d.rs
Lines 79 to 85 in 05853c6
To Reproduce
cargo run --bin snippets -- box3d_batchScreenshots

Rerun version
Commit 05853c6