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

Geodesic pairwise distance #7

Open
dhorka opened this issue Feb 7, 2022 · 1 comment
Open

Geodesic pairwise distance #7

dhorka opened this issue Feb 7, 2022 · 1 comment

Comments

@dhorka
Copy link

dhorka commented Feb 7, 2022

Hi,

I would like to get the geodesic pairwise distance of a mesh. I saw that there are some methods to get the distance for a specific each. However, I did not see how to get efficiently the pairwise distance.

Thanks,

@nmwsharp
Copy link
Owner

(long-delayed response in case it's useful for others)

I'd suggest simply calling these algorithms in a for-loop over all vertices. The underlying algorithms do not have offer any special accelerations for the case of computing all-pairs distance. We could add a helper function for all-pairs, but it would just be a for-loop in C++ :) it might save a little overhead (so I'd be happy to take a PR adding it), but not a ton.

The stateful heat geodesic solver takes advantage of precomputation, so it should be reasonably fast for this intended use case.

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

No branches or pull requests

2 participants