-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 export with multiple objects doesn't work well #19456
Comments
Thanks for the report. For the other models it may also be something in the model files but at this point, I just can't tell if it's the models, Cura, or the CAD export utility. There is no doubt that the results are wrong but why they are wrong isn't immediately apparent. The Cura team will take a look. @Asterchades can you take a look as well? Something seems to be going on. |
If you group the models after splitting the original STL, everything appears to work exactly as expected. They stay together, in their right places, no matter which version is used to import or export. Not intuitive, perhaps, but it works. I'm then also able to reproduce the 4.13.1 results in newer versions of Cura - specifically 5.7 and 5.8. If after splitting the models you then use the Reset Origin to Center option (also part of Mesh Tools) before you export it, it will result in the stored model placement and rotation being exactly what was on screen. These can then be imported into 4.13.1 as either a model or project successfully, but must be imported into 5.7 or 5.8 as a project - importing them as models will trigger an unavoidable auto-arrange, moving and turning the pieces (not great when modifier meshes or deliberate overlaps are involved). This is also true of a Universal Cura Project (UCP). The 3MF looks good in external tools, and imports correctly when done as a project, but triggers the auto-arrange when done as models. So this may also be an option, as these are more printer agnostic than a regular project file. Then of course there's the standard Export (Selection) option, which also yields a correct 3MF result but no longer has the ability to be imported as a project. As such they will import into Cura 4.13.1 correctly, but there is no way in the newer Curas to import this without the auto-arrange being triggered. If you don't reset the origins, however, it causes problems. If you simply split and save (or export), regardless of which project type is used, the models are separated in the resulting 3MF - both horizontally and vertically, with no clear pattern. Importing these as models will trigger the same auto-arrange and, at least for me, would result in what looked like a usable build plate (nothing of mine was sunk under the surface). Much as above, though, importing as a project will maintain these incorrect locations. |
@GregValiant Thanks for the feedback.
![]()
Objects positioning after "Auto Orientation" (fast optimal) @Asterchades The models seems to move after loading the 3mf file. For a very short time the location seems correct, then they "jump" to an incorrect location. Perhaps this is related to the auto-arrange you mentioned. |
This is making my head hurt. The question remains - What is causing the models of the original project file to come into Cura at wrong locations? It would seem that Cura should be storing and using any model transformations (location, rotation, scaling, etc.) for each mesh in the scene but I don't think that's what I'm seeing. I wonder if that's where a Cura bug is - in the "transformation information" and the way it is stored in the 3mf file. Once the models are divorced from their original files and become part of the project they still have bounding boxes which should have size, location, rotations. Being able to keep them oriented by "Grouping" the models may be a pointer to that as well. |
Update: Cura 5.8.0 has the same issues |
I think that this PR #19375 might actually fix the issue. |
Update: Cura 5.8.1 has the same issues |
Just a data point: |
Cura Version
5.7.2
Operating System
Windows 10
Printer
Custom
Reproduction steps
The picture below shows the original stl file and the imported 3mf file.
Actual results
See picture above, parts seem to have moved and rotated.
Expected results
Parts position stays the same after exporting to 3mf
Add your .zip and screenshots here ⬇️
The original STL file (left in picture above) and the exported 3mf file:
Original - Split Mesh, Exported to 3mf.zip
The text was updated successfully, but these errors were encountered: