File: __init__.py

package info (click to toggle)
cura 5.0.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 122,888 kB
  • sloc: python: 44,572; sh: 81; xml: 32; makefile: 16
file content (46 lines) | stat: -rw-r--r-- 1,608 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# 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' is part of the name of this file format.", "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()}