mirror of
https://github.com/hannobraun/Fornjot
synced 2025-10-26 17:58:09 +00:00
Avoid use of redundant method
This commit is contained in:
parent
df92f84bcb
commit
4bc5c13d2c
@ -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),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user