Mesh: add support of thumbnails of 3MF format

This commit is contained in:
wmayer
2022-09-01 16:49:00 +02:00
parent fbfac41c82
commit 086ce2d34c
10 changed files with 281 additions and 15 deletions

View File

@@ -43,6 +43,7 @@
#include <Gui/Language/Translator.h>
#include <Mod/Mesh/App/MeshProperties.h>
#include <Mod/Mesh/App/Exporter.h>
#include "images.h"
#include "DlgEvaluateMeshImp.h"
@@ -52,6 +53,7 @@
#include "SoFCMeshObject.h"
#include "SoFCIndexedFaceSet.h"
#include "SoPolygon.h"
#include "ThumbnailExtension.h"
#include "ViewProvider.h"
#include "ViewProviderMeshFaceSet.h"
#include "ViewProviderCurvature.h"
@@ -163,6 +165,8 @@ PyMOD_INIT_FUNC(MeshGui)
(void)new Gui::PrefPageProducer<MeshGui::DlgSettingsMeshView> ("Display");
(void)new Gui::PrefPageProducer<MeshGui::DlgSettingsImportExport> ( QT_TRANSLATE_NOOP("QObject", "Import-Export") );
Mesh::Extension3MFFactory::addProducer(new MeshGui::ThumbnailExtensionProducer);
MeshGui::SoFCMeshObjectElement ::initClass();
MeshGui::SoSFMeshObject ::initClass();
MeshGui::SoFCMeshObjectNode ::initClass();