mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-17 09:05:58 +08:00
Add support for OpenCTM
Contributes to issue CURA-6739.
This commit is contained in:
parent
41c5b87eae
commit
714e6f191d
@ -27,7 +27,14 @@ class TrimeshReader(MeshReader):
|
|||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
super().__init__()
|
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(
|
MimeTypeDatabase.addMimeType(
|
||||||
MimeType(
|
MimeType(
|
||||||
name = "model/vnd.collada+xml",
|
name = "model/vnd.collada+xml",
|
||||||
|
@ -10,6 +10,10 @@ i18n_catalog = i18nCatalog("uranium")
|
|||||||
def getMetaData():
|
def getMetaData():
|
||||||
return {
|
return {
|
||||||
"mesh_reader": [
|
"mesh_reader": [
|
||||||
|
{
|
||||||
|
"extension": "ctm",
|
||||||
|
"description": i18n_catalog.i18nc("@item:inlistbox", "Open Compressed Triangle Mesh")
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"extension": "dae",
|
"extension": "dae",
|
||||||
"description": i18n_catalog.i18nc("@item:inlistbox", "COLLADA Digital Asset Exchange")
|
"description": i18n_catalog.i18nc("@item:inlistbox", "COLLADA Digital Asset Exchange")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user