Skip to content

Conversation

@th-skam
Copy link
Collaborator

@th-skam th-skam commented Sep 11, 2025

This PR is to fix #83
It is based on PR #89

The problem

During retraction, if the needle is moving too fast inside the tissue, the coupling points are not removed properly. The video below demonstrates the issue. This is due to the algorithm performing only one removal per time step.

25-09-11-RetractionBug.mp4

Solution

Iterate over the coupling points vector and remove points whenever necessary within the same time step. The Operations additions in PR #89 make this easy to implement. The video below demonstrates the result (it is the same scene):

25-09-11-RetractionFix.mp4

Additionally, flow control for point removal or addition should not necessarily be done explicitly in the algorithm. It is a bit restricting without having a big positive effect on performance.

@th-skam th-skam added pr: status to review To notify reviewers to review this pull-request and removed pr: status wip labels Sep 15, 2025
Copy link
Contributor

@epernod epernod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some conflicts to solve and should be good

@th-skam
Copy link
Collaborator Author

th-skam commented Sep 19, 2025

We're good to go

@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 Sep 19, 2025
@epernod epernod merged commit 34151a2 into master Sep 19, 2025
4 checks passed
@epernod epernod deleted the fix-retraction branch September 19, 2025 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: fix pr: status ready Approved a pull-request, ready to be squashed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[algorithm] Coupling points are removed one-per-timestep during retraction

3 participants