From 040204231e02b6e369f4f749fb373ea36bff4343 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Fri, 21 Mar 2025 20:02:11 +0100 Subject: [PATCH] Update function parameter --- crates/fj-export/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/fj-export/src/lib.rs b/crates/fj-export/src/lib.rs index a5ed45b83..b0e4227dc 100644 --- a/crates/fj-export/src/lib.rs +++ b/crates/fj-export/src/lib.rs @@ -49,10 +49,10 @@ pub fn export(tri_mesh: &TriMesh, path: &Path) -> Result<(), Error> { /// # Export the provided mesh to the provided writer in the 3MF format pub fn export_3mf( - mesh: &TriMesh, + tri_mesh: &TriMesh, write: impl Write + Seek, ) -> Result<(), Error> { - let vertices = mesh + let vertices = tri_mesh .vertices() .map(|point| threemf::model::Vertex { x: point.x.into_f64(), @@ -61,7 +61,7 @@ pub fn export_3mf( }) .collect(); - let indices: Vec<_> = mesh.indices().collect(); + let indices: Vec<_> = tri_mesh.indices().collect(); let triangles = indices .chunks(3) .map(|triangle| threemf::model::Triangle {