Remove redundant struct field

This commit is contained in:
Hanno Braun 2025-03-19 20:13:35 +01:00
parent 42d712812e
commit 9072dbda7c
2 changed files with 2 additions and 5 deletions

View File

@ -1,4 +1,4 @@
use fj_math::{Aabb, Point}; use fj_math::Point;
use crate::mesh::Mesh; use crate::mesh::Mesh;
@ -7,7 +7,4 @@ use crate::mesh::Mesh;
pub struct Model { pub struct Model {
/// The triangle mesh that approximates the model /// The triangle mesh that approximates the model
pub mesh: Mesh<Point<3>>, pub mesh: Mesh<Point<3>>,
/// The axis-aligned bounding box of the model
pub aabb: Aabb<3>,
} }

View File

@ -88,7 +88,7 @@ impl Instance {
return Ok(()); return Ok(());
} }
let model = Model { mesh, aabb }; let model = Model { mesh };
crate::viewer::display(model, false)?; crate::viewer::display(model, false)?;