Update order of struct fields

The mesh is much more integral to the model than the AABB, so it makes
sense to list it first.
This commit is contained in:
Hanno Braun 2023-06-06 12:48:43 +02:00
parent b94ed8a3ef
commit 5b8c3a18ae

View File

@ -7,9 +7,9 @@ use crate::mesh::Mesh;
/// An approximated model
#[derive(Clone, Debug)]
pub struct Model {
/// The axis-aligned bounding box of the model
pub aabb: Aabb<3>,
/// The triangle mesh that approximates the model
pub mesh: Mesh<Point<3>>,
/// The axis-aligned bounding box of the model
pub aabb: Aabb<3>,
}