mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-22 13:49:39 +08:00
47 lines
1.5 KiB
Python
47 lines
1.5 KiB
Python
# Copyright (c) 2019 Ultimaker
|
|
# Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
from . import TrimeshReader
|
|
|
|
from UM.i18n import i18nCatalog
|
|
i18n_catalog = i18nCatalog("uranium")
|
|
|
|
|
|
def getMetaData():
|
|
return {
|
|
"mesh_reader": [
|
|
{
|
|
"extension": "ctm",
|
|
"description": i18n_catalog.i18nc("@item:inlistbox", "Open Compressed Triangle Mesh")
|
|
},
|
|
{
|
|
"extension": "dae",
|
|
"description": i18n_catalog.i18nc("@item:inlistbox", "COLLADA Digital Asset Exchange")
|
|
},
|
|
{
|
|
"extension": "glb",
|
|
"description": i18n_catalog.i18nc("@item:inlistbox", "glTF Binary")
|
|
},
|
|
{
|
|
"extension": "gltf",
|
|
"description": i18n_catalog.i18nc("@item:inlistbox", "glTF Embedded JSON")
|
|
},
|
|
# Trimesh seems to have a bug when reading OFF files.
|
|
#{
|
|
# "extension": "off",
|
|
# "description": i18n_catalog.i18nc("@item:inlistbox", "Geomview Object File Format")
|
|
#},
|
|
{
|
|
"extension": "ply",
|
|
"description": i18n_catalog.i18nc("@item:inlistbox", "Stanford Triangle Format")
|
|
},
|
|
{
|
|
"extension": "zae",
|
|
"description": i18n_catalog.i18nc("@item:inlistbox", "Compressed COLLADA Digital Asset Exchange")
|
|
}
|
|
]
|
|
}
|
|
|
|
def register(app):
|
|
return {"mesh_reader": TrimeshReader.TrimeshReader()}
|