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() }
|