Skip to content

Conversation

@akenmorris
Copy link
Contributor

Our distance transforms are usually not true distance transforms. The blue/smoothing breaks some assumptions, e.g. that the gradient magnitude should be 1.0 everywhere.

This approach uses damping and reduced max iterations,

…snapping to surface

Our distance transforms are usually not true distance transforms.  The blue/smoothing breaks some assumptions, e.g. that the gradient magnitude should be 1.0 everywhere.

This approach uses damping and reduced max iterations,
…onstraints

When gradient magnitude is very weak (< 0.5), cap the step size by the distance value to prevent taking unreasonably large steps. This handles pathological cases in smoothed distance fields where weak gradients can cause steps orders of magnitude larger than the distance to the surface and exceed the narrow band.
@akenmorris akenmorris merged commit 5014cc9 into master Nov 3, 2025
5 checks passed
@akenmorris akenmorris deleted the dt_snapping branch November 3, 2025 00:06
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.

2 participants