__init__.py 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright (c) 2019 Ultimaker
  2. # Cura is released under the terms of the LGPLv3 or higher.
  3. from . import TrimeshReader
  4. from UM.i18n import i18nCatalog
  5. i18n_catalog = i18nCatalog("uranium")
  6. def getMetaData():
  7. return {
  8. "mesh_reader": [
  9. {
  10. "extension": "ctm",
  11. "description": i18n_catalog.i18nc("@item:inlistbox 'Open' is part of the name of this file format.", "Open Compressed Triangle Mesh")
  12. },
  13. {
  14. "extension": "dae",
  15. "description": i18n_catalog.i18nc("@item:inlistbox", "COLLADA Digital Asset Exchange")
  16. },
  17. {
  18. "extension": "glb",
  19. "description": i18n_catalog.i18nc("@item:inlistbox", "glTF Binary")
  20. },
  21. {
  22. "extension": "gltf",
  23. "description": i18n_catalog.i18nc("@item:inlistbox", "glTF Embedded JSON")
  24. },
  25. # Trimesh seems to have a bug when reading OFF files.
  26. #{
  27. # "extension": "off",
  28. # "description": i18n_catalog.i18nc("@item:inlistbox", "Geomview Object File Format")
  29. #},
  30. {
  31. "extension": "ply",
  32. "description": i18n_catalog.i18nc("@item:inlistbox", "Stanford Triangle Format")
  33. },
  34. {
  35. "extension": "zae",
  36. "description": i18n_catalog.i18nc("@item:inlistbox", "Compressed COLLADA Digital Asset Exchange")
  37. }
  38. ]
  39. }
  40. def register(app):
  41. return {"mesh_reader": TrimeshReader.TrimeshReader()}