mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-06 10:58:28 +00:00
Fix formatting
This commit is contained in:
parent
b8d2d3ee79
commit
f32bc7df51
@ -19,17 +19,18 @@ pub fn export(mesh: &Mesh) -> anyhow::Result<()> {
|
||||
.collect(),
|
||||
},
|
||||
triangles: threemf::model::Triangles {
|
||||
triangle: triangles.into_iter()
|
||||
.map(|triangle| {
|
||||
triangle.map(|index| {
|
||||
index.try_into().expect(
|
||||
"Converting `u32` to `usize` must work on all platforms \
|
||||
this software is expected to run on.",
|
||||
)
|
||||
triangle: triangles
|
||||
.into_iter()
|
||||
.map(|triangle| {
|
||||
triangle.map(|index| {
|
||||
index.try_into().expect(
|
||||
"Converting `u32` to `usize` must work on all \
|
||||
platforms this software is expected to run on.",
|
||||
)
|
||||
})
|
||||
})
|
||||
})
|
||||
.map(|[v1, v2, v3]| threemf::model::Triangle { v1, v2, v3 })
|
||||
.collect(),
|
||||
.map(|[v1, v2, v3]| threemf::model::Triangle { v1, v2, v3 })
|
||||
.collect(),
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user