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

Workaround assimp exporting empty 3mfs #454

Merged
merged 1 commit into from
Jun 15, 2023

Conversation

geoffder
Copy link
Collaborator

This is something that I actually noticed a long time ago, but forgot to mention or return to myself, but 3mf export via MeshIO doesn't actually work (a file containing no meshes is written).

There is actually a long standing issue for this in the assimp tracker, but fortunately it has an easy workaround. This PR implements that workaround by nesting the node holding the mesh into a child of the root node if the extension is .3mf.

@codecov
Copy link

codecov bot commented Jun 15, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (2f8e317) 89.94% compared to head (4366360) 89.94%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #454   +/-   ##
=======================================
  Coverage   89.94%   89.94%           
=======================================
  Files          35       35           
  Lines        4285     4285           
=======================================
  Hits         3854     3854           
  Misses        431      431           

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Owner

@elalish elalish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent! I think I ran into this at some point too and never bothered debugging it. Thanks for the simple work-around.

@geoffder geoffder merged commit 6ae9dee into elalish:master Jun 15, 2023
21 checks passed
@geoffder geoffder deleted the fix-3mf-meshio branch June 15, 2023 17:45
jmicahc pushed a commit to SovereignShop/manifold that referenced this pull request Jul 4, 2023
 Workaround assimp producing meshless 3mf files by nesting the node holding the mesh into a child of the root node if the extension is .3mf
@elalish elalish mentioned this pull request Nov 3, 2023
cartesian-theatrics pushed a commit to SovereignShop/manifold that referenced this pull request Mar 11, 2024
 Workaround assimp producing meshless 3mf files by nesting the node holding the mesh into a child of the root node if the extension is .3mf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants