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

getNearestEdge( Position ) #758

Open
SkybuckFlying opened this issue Mar 3, 2023 · 1 comment
Open

getNearestEdge( Position ) #758

SkybuckFlying opened this issue Mar 3, 2023 · 1 comment

Comments

@SkybuckFlying
Copy link
Contributor

SkybuckFlying commented Mar 3, 2023

It would be interesting to give/enter a point, either in x,y,z or lat, long coordinates...

The library would then compute the cell index and maybe cell center.

And then the library would compute which edge is nearest to this point.

The edge could then be a number 0 to 5 or so... indicating which edge in a clock wise direction.

Alternatively it could be some edge index number... but preferably some number 0 to 5 for me at least, for coloring purposes...

(In general I think this library could benefit from all kinds of distance computation functions, for visualization purposes, see distance field rendering).

(But also ordering of the geometry and applieing some kind of order to the phenomenon like edges and verteces but at a local ordering scheme).

@nrabinowitz
Copy link
Collaborator

We've considered this - the output in this case would likely be a directedEdge. This isn't a high priority on the roadmap, but PRs are welcome :).

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