Commit cac4005
[RodStraightSection] Fix rest shape double-offset for non-first sections (sofa-framework#223) (sofa-framework#224)
x_used is the global curvilinear abscissa; adding x_start again placed
the rest node at 2*x_start + local_offset instead of x_used. For wires
with two or more RodStraightSections this produced enormous elastic
restoring forces at every timestep, causing simulation explosion.
Fix: use x_used directly, consistent with RodSpireSection and RodMeshSection.
Co-authored-by: Lennart Karstensen <lennart.karstensen@ipa.fraunhofer.de>1 parent f62e734 commit cac4005
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
0 commit comments