Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sreekanth Arikatla
iMSTK
Commits
d592a54b
Commit
d592a54b
authored
Jun 17, 2021
by
Andrew Wilson
🐘
Browse files
REFAC: Renames
parent
e3a9753f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Source/Constraint/PbdConstraints/imstkPbdConstraintContainer.cpp
View file @
d592a54b
...
...
@@ -47,7 +47,7 @@ PbdConstraintContainer::removeConstraint(std::shared_ptr<PbdConstraint> constrai
}
void
PbdConstraintContainer
::
removeConstraint
Vertice
s
(
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
)
...
...
Source/Constraint/PbdConstraints/imstkPbdConstraintContainer.h
View file @
d592a54b
...
...
@@ -55,7 +55,7 @@ public:
///
/// \brief Removes all constraints associated with vertex ids
///
virtual
void
removeConstraint
Vertice
s
(
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
...
...
Source/Scene/imstkPbdObjectCuttingPair.cpp
View file @
d592a54b
...
...
@@ -83,7 +83,7 @@ PbdObjectCuttingPair::apply()
// update pbd states, constraints and solver
pbdModel
->
initState
();
pbdModel
->
getConstraints
()
->
removeConstraint
Vertice
s
(
m_removeConstraintVertices
);
pbdModel
->
getConstraints
()
->
removeConstraints
(
m_removeConstraintVertices
);
// pbdModel->getConstraints()->addConstraintVertices(m_addConstraintVertices);
pbdModel
->
addConstraints
(
m_addConstraintVertices
);
pbdModel
->
getSolver
()
->
setInvMasses
(
pbdModel
->
getInvMasses
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment