Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3MF exporter #120

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
02de08e
add outline test for 3mf export
Floppy Feb 19, 2024
fba5abc
add 3mf exporter class skeleton
Floppy Feb 19, 2024
560a171
rename parse to export, and add alias for compatibility
Floppy Feb 21, 2024
73f003a
add #export_uncompressed for easier testing of 3MF content
Floppy Feb 21, 2024
4057766
remove extraneous Object3D and Group in export test
Floppy Feb 21, 2024
d8e3a89
3MF: skeleton model file export
Floppy Feb 21, 2024
c03a1eb
add builder as direct dependency for writing XML files
Floppy Feb 21, 2024
16b4f67
test building an outline XML model for 3mf
Floppy Feb 21, 2024
abcd989
create 3MF OPC package metadata files
Floppy Feb 22, 2024
e44571f
store actual mesh data in 3MF
Floppy Feb 22, 2024
e876535
add zip compression for 3mf output
Floppy Feb 23, 2024
6fe4fc7
test vertex/face output in 3MF model file
Floppy Feb 23, 2024
d81f515
refactor 3mf creation to require fewer temporary files on disk
Floppy Feb 23, 2024
3ce7604
remove temp directory from 3mf tests
Floppy Feb 23, 2024
05ef500
include exporters in simplecov
Floppy Feb 23, 2024
f0b1b16
remove model name parameterization
Floppy Feb 23, 2024
11db745
add example for exporting 3MF
Floppy Feb 23, 2024
eae599c
traverse all meshes in an object for 3mf output
Floppy Feb 26, 2024
aa8893b
test that grouped meshes are all exported
Floppy Feb 26, 2024
49f8356
check that geometry is exported correct for multi-mesh 3MF models
Floppy Feb 26, 2024
9e2c056
add simple OBJ example file and use it in 3MF conversion example
Floppy Feb 26, 2024
a9f84f1
require rexml in dev for testing 3mf output
Floppy Feb 28, 2024
57986ea
sanitize filenames in 3mf output
Floppy May 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
/test/reports
*.gem
.tool-versions
/examples/mittsu-export.3mf
7 changes: 7 additions & 0 deletions examples/10_3mf_exporter_example.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require_relative './example_helper'

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

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