+ Add a sketch validation panel

This commit is contained in:
wmayer
2013-10-15 17:11:49 +02:00
parent 5bee772e49
commit 957cedc1ff
8 changed files with 419 additions and 1 deletions

View File

@@ -394,7 +394,12 @@ int SketchObject::setConstruction(int GeoId, bool on)
int SketchObject::addConstraints(const std::vector<Constraint *> &ConstraintList)
{
return -1;
const std::vector< Constraint * > &vals = this->Constraints.getValues();
std::vector< Constraint * > newVals(vals);
newVals.insert(newVals.end(), ConstraintList.begin(), ConstraintList.end());
this->Constraints.setValues(newVals);
return this->Constraints.getSize()-1;
}
int SketchObject::addConstraint(const Constraint *constraint)