.3mf file type

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
JohnOCFII
Posts: 112
Joined: Sun Sep 20, 2020 5:46 pm
Location: Minnesota, USA

Re: .3mf file type

Post by JohnOCFII »

jeno wrote: Mon Jun 13, 2022 9:15 am
JohnOCFII wrote: Mon Jun 13, 2022 3:20 am ...
I've attempted to test this on the last couple of weekly builds, but the resulting 3MF file is not able to be read by PrusaSlicer or Fusion 360 (the only two programs I tried).
...
Would you mind trying the attached with Prusa Slicer and/or Fusion 360?

cheers
That failed as well -- also, the unzipped file was close to 1MB, which is quite a bit larger than the initial 86kb.
JohnOCFII
Posts: 112
Joined: Sun Sep 20, 2020 5:46 pm
Location: Minnesota, USA

Re: .3mf file type

Post by JohnOCFII »

wmayer wrote: Mon Jun 13, 2022 5:57 am
JohnOCFII wrote: Mon Jun 13, 2022 3:20 am I've attempted to test this on the last couple of weekly builds, but the resulting 3MF file is not able to be read by PrusaSlicer or Fusion 360 (the only two programs I tried).
As reference I have used Blender and that imported the file that was created with FreeCAD without problems. Do you get any error messages?

Does PrusaSlicer or Fusion 360 support the export of the 3mf format? If yes you could export the object from FreeCAD in a mesh format that the two programs support (e.g. STL), import into PrusaSlicer or Fusion 360 and export as 3mf. This way the output files can be compared.
Thanks for checking. With the supplied file, PrusaSlicer 2.4.2 (the current version) fails silently. Fusion 360 displays a generic message that reads: "Cannot insert mesh body. The source file may be damaged."

As suggested, I exported the model from FreeCAD in both AMF and STL formats. PrusaSlicer can read both (but for some reason, the STL lands centered on the print bed area, and the AMF is positioned with the center of the object at 0,0 -- not sure what controls that...). I saved the AMF out as a 3MF from PrusaSlicer, and confirmed that it can be imported correctly into Fusion 360.

Attached is the 3MF I exported from PrusaSlicer after importing (and centering on the bed) the AMF I previously exported from FreeCAD. The AMF export is also attached. Both are in the zipped file.

Thanks!
Attachments
Export-Tests.zip
(237.32 KiB) Downloaded 20 times
wmayer
Founder
Posts: 20245
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: .3mf file type

Post by wmayer »

Thanks.
JohnOCFII
Posts: 112
Joined: Sun Sep 20, 2020 5:46 pm
Location: Minnesota, USA

Re: .3mf file type

Post by JohnOCFII »

I've downloaded Blender 3.2 for macOS ARM/M1, installed the community-supported 3MF importer (found here: https://developer.blender.org/T84154) (as 3MF doesn't show up be default) and did confirm that it seemed to import my original FreeCAD exported 3MF file correctly.

Thanks,

John
wmayer
Founder
Posts: 20245
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: .3mf file type

Post by wmayer »

jeno
Veteran
Posts: 1821
Joined: Sun Jun 29, 2014 10:41 am

Re: .3mf file type

Post by jeno »

wmayer wrote: Mon Jun 13, 2022 4:16 pm issue #7018
Comparing Freecad (bottom windeo) and Prusa Slicer (top window) one can see differences in the model-file
3mf.png
3mf.png (178.75 KiB) Viewed 1478 times
Prusa Slicer doesn't have a carriage return in the leading model tag. And more obvious Prusa doesn't sets a blank space behind the last value, neither for vertices nor for faces.

cheers
wmayer
Founder
Posts: 20245
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: .3mf file type

Post by wmayer »

jeno wrote: Mon Jun 13, 2022 5:03 pm Prusa Slicer doesn't have a carriage return in the leading model tag. And more obvious Prusa doesn't sets a blank space behind the last value, neither for vertices nor for faces.
Thanks for looking at the issue. However, these extra spaces shouldn't be a problem because it's still valid XML. If you load it into an XML validator you will see that both files are OK.
JohnOCFII
Posts: 112
Joined: Sun Sep 20, 2020 5:46 pm
Location: Minnesota, USA

Re: .3mf file type

Post by JohnOCFII »

wmayer wrote: Mon Jun 13, 2022 4:16 pm issue #7018
Thanks for creating the ticket!
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: .3mf file type

Post by adrianinsaval »

does xml follow indentation for hierarchy? I notice one has resources at the same level as the metadata and the other has more indentation for resources
GAZ082
Posts: 51
Joined: Sat Sep 18, 2021 3:30 am
Location: Buenos Aires City, Argentina

Re: .3mf file type

Post by GAZ082 »

Im also having issues in Linux, with Cura 5.0.0. File is read as "corrupt".
Attachments
Cylinder.zip
Change extension to 3mf!!!
(9.82 KiB) Downloaded 20 times
Post Reply