Mesh: implemment mechanism to load MeshGui module when exporting to 3MF file

This commit is contained in:
wmayer
2022-09-14 12:05:32 +02:00
parent d6afbb5718
commit b5e8a2c28d
4 changed files with 87 additions and 13 deletions

View File

@@ -26,6 +26,7 @@
#include <Base/Interpreter.h>
#include <App/Application.h>
#include "Exporter.h"
#include "Mesh.h"
#include "MeshPy.h"
#include "MeshPointPy.h"
@@ -68,6 +69,8 @@ PyMOD_INIT_FUNC(Mesh)
Base::Interpreter().addType(&Mesh::MeshPy ::Type,meshModule,"Mesh");
Base::Interpreter().addType(&Mesh::MeshFeaturePy::Type,meshModule,"Feature");
Mesh::Extension3MFFactory::addProducer(new Mesh::GuiExtension3MFProducer);
// init Type system
Mesh::PropertyNormalList ::init();
Mesh::PropertyCurvatureList ::init();