add DistanceConstraintIJ and AngleConstraintIJ

This commit is contained in:
Aik-Siong Koh
2023-07-08 23:20:27 -06:00
parent cb27f2344b
commit 718b17a2cf
134 changed files with 4218 additions and 556 deletions

View File

@@ -96,11 +96,11 @@ bool SystemSolver::needToRedoPosIC()
auto newSet = std::make_shared<std::set<std::string>>();
for (auto& con : *allRedunCons) {
auto aaa = std::static_pointer_cast<RedundantConstraint>(con);
auto& bbb = aaa->constraint->getName();
auto& bbb = aaa->constraint->name;
newSet->insert(bbb);
}
//std::transform(allRedunCons->begin(), allRedunCons->end(), newSet->begin(), [](auto con) {
// return std::static_pointer_cast<RedundantConstraint>(con)->constraint->getName();
// return std::static_pointer_cast<RedundantConstraint>(con)->constraint->name;
// });
if (newSet->empty()) return false;
auto itr = std::find_if(setsOfRedundantConstraints->begin(), setsOfRedundantConstraints->end(), [&](auto& set) {