mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-06 18:05:11 +08:00

This already implements most of it. Just the thumbnail must still be gotten and put inside the container. Contributes to issue CURA-4872.
26 lines
776 B
Python
26 lines
776 B
Python
#Copyright (c) 2018 Ultimaker B.V.
|
|
#Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
from . import UFPWriter
|
|
from UM.i18n import i18nCatalog #To translate the file format description.
|
|
from UM.Mesh.MeshWriter import MeshWriter #For the binary mode flag.
|
|
|
|
i18n_catalog = i18nCatalog("cura")
|
|
|
|
def getMetaData():
|
|
return {
|
|
"mesh_writer": {
|
|
"output": [
|
|
{
|
|
"mime_type": "application/x-ufp",
|
|
"mode": MeshWriter.OutputMode.BinaryMode,
|
|
"extension": "ufp",
|
|
"description": i18n_catalog.i18nc("@item:inlistbox", "Ultimaker Format Package")
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|
|
def register(app):
|
|
return { "mesh_writer": UFPWriter.UFPWriter() }
|