Commit d592a54b authored by Andrew Wilson's avatar Andrew Wilson
Browse files

REFAC: Renames

parent e3a9753f
......@@ -47,7 +47,7 @@ PbdConstraintContainer::removeConstraint(std::shared_ptr<PbdConstraint> constrai
}
void
PbdConstraintContainer::removeConstraintVertices(std::shared_ptr<std::unordered_set<size_t>> vertices)
PbdConstraintContainer::removeConstraints(std::shared_ptr<std::unordered_set<size_t>> vertices)
{
// Remove constraints that contain the given vertices
auto removeConstraintFunc = [&](std::shared_ptr<PbdConstraint> constraint)
......
......@@ -55,7 +55,7 @@ public:
///
/// \brief Removes all constraints associated with vertex ids
///
virtual void removeConstraintVertices(std::shared_ptr<std::unordered_set<size_t>> vertices);
virtual void removeConstraints(std::shared_ptr<std::unordered_set<size_t>> vertices);
///
/// \brief Removes a constraint from the system by iterator, thread safe
......
......@@ -83,7 +83,7 @@ PbdObjectCuttingPair::apply()
// update pbd states, constraints and solver
pbdModel->initState();
pbdModel->getConstraints()->removeConstraintVertices(m_removeConstraintVertices);
pbdModel->getConstraints()->removeConstraints(m_removeConstraintVertices);
// pbdModel->getConstraints()->addConstraintVertices(m_addConstraintVertices);
pbdModel->addConstraints(m_addConstraintVertices);
pbdModel->getSolver()->setInvMasses(pbdModel->getInvMasses());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment