add simple Python wrapper for Vector2d class

This commit is contained in:
wmayer
2016-11-21 22:01:34 +01:00
parent bba6891b20
commit a5537a992f
4 changed files with 98 additions and 0 deletions

View File

@@ -107,6 +107,7 @@
#include "Expression.h"
#include "Transactions.h"
#include <App/MaterialPy.h>
#include <Base/GeometryPyCXX.h>
// If you stumble here, run the target "BuildExtractRevision" on Windows systems
// or the Python script "SubWCRev.py" on Linux based systems which builds
@@ -245,6 +246,10 @@ Application::Application(std::map<std::string,std::string> &mConfig)
Base::ProgressIndicatorPy::init_type();
Base::Interpreter().addType(Base::ProgressIndicatorPy::type_object(),
pBaseModule,"ProgressIndicator");
Base::Vector2dPy::init_type();
Base::Interpreter().addType(Base::Vector2dPy::type_object(),
pBaseModule,"Vector2d");
}
Application::~Application()