Assembly: Simulation implementation
This commit is contained in:
committed by
Max Wilfinger
parent
3e70f7244d
commit
5d143d1f59
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user