File: __init__.py

package info (click to toggle)
uranium 5.0.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,304 kB
  • sloc: python: 31,765; sh: 132; makefile: 12
file content (23 lines) | stat: -rw-r--r-- 749 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Copyright (c) 2015 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from . import OBJWriter

from UM.i18n import i18nCatalog
i18n_catalog = i18nCatalog("uranium")

#TODO: We can't quite finish this as we have no real faces to save yet. This writer should work, but is not tested.
def getMetaData():
    return {
        "mesh_writer": {
            "output": [{
                "extension": "obj",
                "description": i18n_catalog.i18nc("@item:inlistbox", "Wavefront OBJ File"),
                "mime_type": "application/x-wavefront-obj",
                "mode": OBJWriter.OBJWriter.OutputMode.TextMode
            }]
        }
    }

def register(app):
    return { "mesh_writer": OBJWriter.OBJWriter() }