Skip to content

Commit

Permalink
Merge pull request #2248 from IamTheCarl/main
Browse files Browse the repository at this point in the history
Update ThreeMF to 0.5.0
  • Loading branch information
hannobraun authored Mar 2, 2024
2 parents 911cd73 + 6a1fee9 commit 81c971e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
19 changes: 5 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/fj-export/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ workspace = true
fj-interop.workspace = true
fj-math.workspace = true
thiserror = "1.0.57"
threemf = "0.4.0"
threemf = "0.5.0"
stl = "0.2.1"
wavefront_rs = "=2.0.0-beta.1"
3 changes: 2 additions & 1 deletion crates/fj-export/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ fn export_3mf(mesh: &Mesh<Point<3>>, path: &Path) -> Result<(), Error> {
},
};

threemf::write(path, mesh)?;
let mut file = File::create(path)?;
threemf::write(&mut file, mesh)?;

Ok(())
}
Expand Down

0 comments on commit 81c971e

Please sign in to comment.