Assembly: Simulation implementation

This commit is contained in:
Aik-Siong Koh
2024-08-28 10:01:11 -06:00
committed by Max Wilfinger
parent 3e70f7244d
commit 5d143d1f59
28 changed files with 6187 additions and 15 deletions

View File

@@ -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;
}