Assembly: Simulation implementation

This commit is contained in:
Aik-Siong Koh
2024-12-03 20:07:04 +01:00
committed by Max Wilfinger
parent 4a2edae421
commit 3326c33d83
28 changed files with 6187 additions and 15 deletions
@@ -45,3 +45,15 @@ int AssemblyLinkPy::setCustomAttributes(const char* /*attr*/, PyObject* /*obj*/)
{
return 0;
}
Py::List AssemblyLinkPy::getJoints() const
{
Py::List ret;
std::vector<App::DocumentObject*> list = getAssemblyLinkPtr()->getJoints();
for (auto It : list) {
ret.append(Py::Object(It->getPyObject(), true));
}
return ret;
}