Skip to content

Comments

Add guide that shows how to use half-edge data structures#23

Merged
mourner merged 6 commits intomapbox:masterfrom
redblobgames:master
Aug 28, 2018
Merged

Add guide that shows how to use half-edge data structures#23
mourner merged 6 commits intomapbox:masterfrom
redblobgames:master

Conversation

@redblobgames
Copy link
Collaborator

Preview of the guide: https://redblobgames.github.io/delaunator/

  • moved the demo to docs/demo.html
  • need to change project settings to use docs/ for the github.io page

(should squash the commits before merging)

* 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.
@mourner mourner merged commit 804e51d into mapbox:master Aug 28, 2018
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