Inline redundant variable

This commit is contained in:
Hanno Braun 2025-03-21 20:09:46 +01:00
parent 8f3ad7b50d
commit 0069af64f3

View File

@ -61,8 +61,9 @@ pub fn export_3mf(
})
.collect();
let indices = tri_mesh.indices().collect::<Vec<_>>();
let triangles = indices
let triangles = tri_mesh
.indices()
.collect::<Vec<_>>()
.chunks(3)
.map(|triangle| threemf::model::Triangle {
v1: triangle[0] as usize,