Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve interpolate_gradient description #127

Open
Stoeoef opened this issue Feb 21, 2025 · 0 comments
Open

Improve interpolate_gradient description #127

Stoeoef opened this issue Feb 21, 2025 · 0 comments

Comments

@Stoeoef
Copy link
Owner

Stoeoef commented Feb 21, 2025

The current NaturalNeighbor::interpolate_gradient doc comment is a little brief, especially in regard to its example.

An improved version should give a more realistic example with non-constant gradients. Some easy variants would be e.g. interpolating points on a sphere (thus: the normal vector always points away from the origin) or calculating the "average" normal / gradient on the fly by fitting a plane through all adjacent vertices (which might be a useful real-world example!)

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

No branches or pull requests

1 participant