Skip to content

Commit 4157fd8

Browse files
fredroyhugtalbot
andauthored
Update src/BeamAdapter/component/controller/InterventionalRadiologyController.inl
Co-authored-by: Hugo <hugo.talbot@sofa-framework.org>
1 parent a17285a commit 4157fd8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/BeamAdapter/component/controller/InterventionalRadiologyController.inl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,6 +1127,8 @@ void InterventionalRadiologyController<DataTypes>::fixFirstNodesWithUntil(unsign
11271127
for(unsigned int i=0; i<firstSimulatedNode-1 ; i++)
11281128
{
11291129
xMstate[i] = startPos;
1130+
// Overwriting the rest position avoids a jump of released DoFs, trying to reach their rest position when released
1131+
// This remains safe since BeamFEMForceField uses the interpolation object to compute transformation without using the rest shape
11301132
xrestMstate[i] = startPos;
11311133
vMstate[i].clear();
11321134
l_fixedConstraint->addConstraint(i);

0 commit comments

Comments
 (0)