add more constraints and rebuild solver system everytime it needs to be executed

This commit is contained in:
Stefan Tröger
2013-05-13 16:21:19 +02:00
committed by Stefan Tröger
parent 1e8a304036
commit ca60024447
62 changed files with 2071 additions and 423 deletions

View File

@@ -16,20 +16,6 @@ std::string ConstraintGroupPy::representation(void) const
return std::string("<ConstraintGroup object>");
}
PyObject* ConstraintGroupPy::addConstraint(PyObject * args)
{
PyObject *pcObj;
if (!PyArg_ParseTuple(args, "O", &pcObj))
return 0;
if (PyObject_TypeCheck(pcObj, &(Assembly::ConstraintPy::Type))) {
Base::Console().Message("Add constraint\n");
Assembly::Constraint *c = static_cast<Assembly::ConstraintPy*>(pcObj)->getConstraintPtr();
this->getConstraintGroupPtr()->addConstraint(c);
}
Py_Return;
}
PyObject *ConstraintGroupPy::getCustomAttributes(const char* /*attr*/) const
{
return 0;