mirror of
https://github.com/hannobraun/Fornjot
synced 2025-11-12 10:00:23 +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
|
/// # Compute the axis-aligned bounding box of this mesh
|
||||||
pub fn aabb(&self) -> Aabb<3> {
|
pub fn aabb(&self) -> Aabb<3> {
|
||||||
Aabb::<3>::from_points(
|
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