mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Add support for OpenCTM
Contributes to issue CURA-6739.
This commit is contained in:
parent
41c5b87eae
commit
714e6f191d
2 changed files with 12 additions and 1 deletions
|
@ -27,7 +27,14 @@ class TrimeshReader(MeshReader):
|
|||
def __init__(self) -> None:
|
||||
super().__init__()
|
||||
|
||||
self._supported_extensions = [".dae", ".gltf", ".glb", ".ply"]
|
||||
self._supported_extensions = [".ctm", ".dae", ".gltf", ".glb", ".ply"]
|
||||
MimeTypeDatabase.addMimeType(
|
||||
MimeType(
|
||||
name = "application/x-ctm",
|
||||
comment = "Open Compressed Triangle Mesh",
|
||||
suffixes = ["ctm"]
|
||||
)
|
||||
)
|
||||
MimeTypeDatabase.addMimeType(
|
||||
MimeType(
|
||||
name = "model/vnd.collada+xml",
|
||||
|
|
|
@ -10,6 +10,10 @@ 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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue