StepShape class and python binding for handling STep-Shape transfers.

This commit is contained in:
jriegel
2014-01-05 22:31:04 +01:00
parent e17090fadd
commit 4be052af48
6 changed files with 258 additions and 1 deletions

View File

@@ -29,15 +29,20 @@
#include <Base/Console.h>
#include <Base/Interpreter.h>
#include "StepShapePy.h"
#include "StepShape.h"
/* registration table */
extern struct PyMethodDef Import_Import_methods[];
PyDoc_STRVAR(module_doc,
"This module is about import/export files formates.\n"
"\n");
extern "C" {
void ImportExport initImport()
{
(void) Py_InitModule("Import", Import_Import_methods); /* mod name, table ptr */
PyObject* importModule = Py_InitModule3("Import", Import_Import_methods, module_doc); /* mod name, table ptr */
try {
Base::Interpreter().loadModule("Part");
@@ -47,6 +52,12 @@ void ImportExport initImport()
return;
}
// add mesh elements
Base::Interpreter().addType(&Import::StepShapePy ::Type,importModule,"StepShape");
// init Type system
//Import::StepShape ::init();
Base::Console().Log("Loading Import module... done\n");
}