Drop support for CTM files

Open CTM has been used 5 times on million of slices
the past year. Since OpenCTM seems to be abounded
since 2012 we have decided to drop support. There
are plenty of conversion tools for this file type
available.

See ultimaker/cura-build-environment#333456c068944ff6b3e7afb2f02a243f0f488371

Contributes to CURA-8640
This commit is contained in:
j.spijker@ultimaker.com 2022-03-23 16:28:58 +01:00 committed by Jelle Spijker
parent 4099655004
commit 54ccc12649
No known key found for this signature in database
GPG key ID: 6662DC033BE6B99A

View file

@ -1,4 +1,4 @@
# Copyright (c) 2019 Ultimaker B.V., fieldOfView # Copyright (c) 2019-2022 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher. # Cura is released under the terms of the LGPLv3 or higher.
# The _toMeshData function is taken from the AMFReader class which was built by fieldOfView. # The _toMeshData function is taken from the AMFReader class which was built by fieldOfView.
@ -29,14 +29,7 @@ class TrimeshReader(MeshReader):
def __init__(self) -> None: def __init__(self) -> None:
super().__init__() super().__init__()
self._supported_extensions = [".ctm", ".dae", ".gltf", ".glb", ".ply", ".zae"] self._supported_extensions = [".dae", ".gltf", ".glb", ".ply", ".zae"]
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",