mirror of
https://github.com/hannobraun/Fornjot
synced 2025-07-13 13:36:07 +00:00
Simplify
This commit is contained in:
parent
f9643a257b
commit
8fe493c8d1
@ -1,14 +1,13 @@
|
||||
use std::fs::File;
|
||||
|
||||
use crate::geometry::Mesh;
|
||||
use crate::geometry::{Mesh, Vertex};
|
||||
|
||||
pub fn export(mesh: &Mesh) -> anyhow::Result<()> {
|
||||
let vertices = mesh
|
||||
.vertices()
|
||||
.iter()
|
||||
.copied()
|
||||
.map(|vertex| vertex.point)
|
||||
.map(|[x, y, z]| threemf::model::Vertex { x, y, z })
|
||||
.map(|Vertex { point: [x, y, z] }| threemf::model::Vertex { x, y, z })
|
||||
.collect();
|
||||
|
||||
let triangles = mesh
|
||||
|
Loading…
x
Reference in New Issue
Block a user