mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-06 02:48:27 +00:00
Simplify name of variable
This commit is contained in:
parent
64906e8684
commit
a309fea090
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user