Skip to content

[operations] Robustify retraction detection check using tip velocity#117

Merged
epernod merged 3 commits into
masterfrom
th-improve-pruning
May 29, 2026
Merged

[operations] Robustify retraction detection check using tip velocity#117
epernod merged 3 commits into
masterfrom
th-improve-pruning

Conversation

@th-skam
Copy link
Copy Markdown
Collaborator

@th-skam th-skam commented May 29, 2026

This PR is about improving the retraction of the needle, during which coupling points have to be pruned ahead of the tip.

We do a simple geometric test and prune them in case they are ahead. The proper thing to do would be to also account for the velocity of the tip. If it's moving backwards, we prune, otherwise we still keep the coupling points.

On its own, this changes nothing. It only becomes relevant when a contactDistance parameter is introduced. With contactDistance and without this change, the coupling point would instantly get pruned at the point of puncture.

The check is incremental

Comment thread src/CollisionAlgorithm/operations/NeedleOperations.cpp Outdated
@epernod epernod added pr: status ready Approved a pull-request, ready to be squashed and removed pr: status to review To notify reviewers to review this pull-request labels May 29, 2026
@epernod epernod merged commit 17e4fd2 into master May 29, 2026
8 checks passed
@epernod epernod deleted the th-improve-pruning branch May 29, 2026 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: enhancement pr: run ci pr: status ready Approved a pull-request, ready to be squashed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants