Skip to content

Conversation

@maltezfaria
Copy link
Owner

This PR introduces a new extension, and the associated reinitialize! method, to set a given level-set to a signed distance function. It is based on:

  1. Interpolating the grid-based level-set to create a continuous interpolant f. We currently use Interpolations for that purpose.
  2. Sampling the zero curve of f
  3. For each grid point y, perform some Newton iterations to minimise norm(x-y) subject to the equality constraint f(x) = 0

Follows the ideas presented this paper (with some minor tweaks). Not all the safeguards discussed there are currently implemented.

Closes #58

@codecov
Copy link

codecov bot commented Oct 24, 2025

Codecov Report

❌ Patch coverage is 86.58537% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 30.61%. Comparing base (904acaf) to head (92a3012).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
ext/MakieExt.jl 0.00% 5 Missing ⚠️
src/levelsetequation.jl 0.00% 5 Missing ⚠️
src/LevelSetMethods.jl 0.00% 1 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (904acaf) and HEAD (92a3012). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (904acaf) HEAD (92a3012)
2 1
Additional details and impacted files
@@             Coverage Diff             @@
##             main      #65       +/-   ##
===========================================
- Coverage   77.27%   30.61%   -46.67%     
===========================================
  Files          12       14        +2     
  Lines         845      908       +63     
===========================================
- Hits          653      278      -375     
- Misses        192      630      +438     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@maltezfaria maltezfaria merged commit aeb77f4 into main Oct 24, 2025
7 checks passed
@maltezfaria maltezfaria deleted the reinitialization-ext branch October 24, 2025 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make reinitialisation more user friendly

2 participants