You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What if voronoi.index pointed to the first triangle vertex for a given cell, and then we used the halfedge traversal algorithm lazily? Then we wouldn’t need to precompute voronoi.edges.
The text was updated successfully, but these errors were encountered:
This is what I do, except I point to the first(*) halfedge. From the halfedge I can get the triangle vertex but I can also traverse in other fun ways.
(*) I've simplified a bit more by adding “ghost” triangles around the convex hull. These link to an “infinity” site. With the ghost elements, halfedges[e] is never -1, which simplifies some of the traversal logic. In exchange, whenever drawing I need to test for ghosts, but overall it's been a big win for my projects.
What if voronoi.index pointed to the first triangle vertex for a given cell, and then we used the halfedge traversal algorithm lazily? Then we wouldn’t need to precompute voronoi.edges.
The text was updated successfully, but these errors were encountered: