Add guide that shows how to use half-edge data structures#23
Merged
mourner merged 6 commits intomapbox:masterfrom Aug 28, 2018
Merged
Add guide that shows how to use half-edge data structures#23mourner merged 6 commits intomapbox:masterfrom
mourner merged 6 commits intomapbox:masterfrom
Conversation
* Triangles to half-edges * Half-edges to triangles * Triangles to adjacent triangles * Points to half-edges * Half-edges to Voronoi cells
* Summary at end links to sample functions for {edge,triangle,point}
to {edge,triangle,point} functions.
* Some names were YFromX and some were XToY. Change them to YFromX.
* Change cellEdgeIds to edgesAroundPoint. It's not edgesFromPoint
because it doesn't actually take a point id; it takes an incoming
edge id so I wanted the name to be a little different to reflect
that.
* Major sections will be linkable (but the anchors aren't exposed anywhere) * Also fix typo in anchor "edges-to-edges" should have been "edge-to-edges"
* Previously pointsOfTriangle returned point x,y but it's more useful to return point ids so that it can be used for traversing the graph.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Preview of the guide: https://redblobgames.github.io/delaunator/
(should squash the commits before merging)