fix: include edge point in isInsideTriangle #33

Merged
oletytlandsvik merged 2 commits from fix/edge-point-in-cell into main 2025-05-02 13:06:30 +00:00
oletytlandsvik commented 2025-05-02 12:21:44 +00:00 (Migrated from gitlab.com)

When a point is calculated to be on a triangle edge, isInsideTriangle will consider it outside the cell.
This leads to tryGetElement not being able to find the nearest element of such points, even when they are within the graph on an internal edge.

This MR proposes to instead consider edge point "inside" the triangle.

When a point is calculated to be on a triangle edge, `isInsideTriangle` will consider it outside the cell. This leads to `tryGetElement` not being able to find the nearest element of such points, even when they are within the graph on an internal edge. This MR proposes to instead consider edge point "inside" the triangle.
oletytlandsvik commented 2025-05-02 12:21:44 +00:00 (Migrated from gitlab.com)

requested review from @stigrj

requested review from @stigrj
stigrj (Migrated from gitlab.com) approved these changes 2025-05-02 12:21:44 +00:00
oletytlandsvik commented 2025-05-02 12:37:36 +00:00 (Migrated from gitlab.com)

added 1 commit

  • 8715f4d8 - fix: remove unused double precision function

Compare with previous version

added 1 commit <ul><li>8715f4d8 - fix: remove unused double precision function</li></ul> [Compare with previous version](/oceanbox/Oceanbox.FvcomKit/-/merge_requests/32/diffs?diff_id=1345368425&start_sha=c89f35bc6e316ac19d2de4ef35dbb78302881373)
stigrj commented 2025-05-02 13:06:24 +00:00 (Migrated from gitlab.com)

approved this merge request

approved this merge request
stigrj commented 2025-05-02 13:06:30 +00:00 (Migrated from gitlab.com)

mentioned in commit bfb3a8e489

mentioned in commit bfb3a8e489ed60a620b84ac3148ab3ed55c74eb0
stigrj (Migrated from gitlab.com) merged commit bfb3a8e489 into main 2025-05-02 13:06:31 +00:00
Sign in to join this conversation.