Skip to content

Commit

Permalink
add simple OBJ example file and use it in 3MF conversion example
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Feb 28, 2024
1 parent 3440efd commit 7e1177d
Show file tree
Hide file tree
Showing 3 changed files with 2,085 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
/test/reports
*.gem
.tool-versions
/examples/output.3mf
/examples/mittsu-export.3mf
4 changes: 2 additions & 2 deletions examples/10_3mf_exporter_example.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative './example_helper'

loader = Mittsu::OBJLoader.new
object = loader.load(File.expand_path('../male02.obj', __FILE__))
object = loader.load(File.expand_path('../mittsu.obj', __FILE__))

exporter = Mittsu::ThreeMFExporter.new
exporter.export(object, File.expand_path('../output.3mf', __FILE__))
exporter.export(object, File.expand_path('../mittsu-export.3mf', __FILE__))
Loading

0 comments on commit 7e1177d

Please sign in to comment.