Skip to content

[algorithm] Coupling point removal does not work well in some edge cases #72

Closed

Description

@th-skam

Description

The coupling point removal algorithm relies on the idea that if a point is found in front of the tip, this indicates that the needle is retreating and the point should be removed from m_couplingPts. This video shows a more extreme case where the needle did not exit properly:

25-08-13-InsertionExitBug.mp4

In such a case, m_couplingPts will not be empty while the needle is outside the volume. Because of this, collision detection is disabled and the needle gets instantly attached to the coupling points.

A more global approach should be followed to completely restart the algorithm if the needle is outside the body.

Activity

  1. self-assigned this
    on Aug 13, 2025
  2. added theissue type on Aug 13, 2025
  3. th-skam commented on Aug 25, 2025

    @th-skam
    CollaboratorAuthor

    This issue has been resolved through the modifications made in PR #65
    The algorithm is protected from adding spurious proximities and the last check in the doDetection function clears m_couplingPts to restart collision detection when the needle exits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions