Avoid use of redundant method

This commit is contained in:
Hanno Braun 2025-03-21 21:22:17 +01:00
parent df92f84bcb
commit 4bc5c13d2c

View File

@ -54,7 +54,9 @@ impl TriMesh {
/// # Compute the axis-aligned bounding box of this mesh
pub fn aabb(&self) -> Aabb<3> {
Aabb::<3>::from_points(
self.triangles().flat_map(|triangle| triangle.inner.points),
self.triangles
.iter()
.flat_map(|triangle| triangle.inner.points),
)
}
}