Simplify name of variable

This commit is contained in:
Hanno Braun 2024-11-06 19:41:40 +01:00
parent 64906e8684
commit a309fea090

View File

@ -15,7 +15,7 @@ pub fn export(mesh: &Mesh) -> anyhow::Result<()> {
let mut triangles = Vec::new();
for triangle in mesh_triangles {
let triangle_indices = triangle.map(|vertex| {
let triangle = triangle.map(|vertex| {
*indices_by_vertex.entry(vertex).or_insert_with(|| {
let index = vertices.len();
vertices.push(vertex);
@ -23,7 +23,7 @@ pub fn export(mesh: &Mesh) -> anyhow::Result<()> {
})
});
triangles.push(triangle_indices);
triangles.push(triangle);
}
let mesh = threemf::Mesh {