Usage:
- position mouse and hit <delete> to delete a vertex
- position mouse and hit "0", "1", "2", ..., "9" to add a vertex (9 is a special "null" color) -- or hit "B" for blue, "G" for green, etc.
- holding the "M" key lets you drag vertices in the dual graph
- holding the "E" key lets you toggle edges in the dual graph -- drag from one vertex to another
- hit [dual->tile] to create a tile graph from the dual graph
- you can drag vertices on the dual graph to reposition them
>What am I doing wrong here?
You can ignore the error message "edge 0 1 is curved..." -- I added in logic so that a polygon in the dual graph with 7+ vertices is considered a "hole", but I didn't update the error message logic.
Also, the simulator doesn't like the dual graph having skinny chain of single vertices. Add in some "null" vertices to make the "chain" wider.
Here's a video:
https://www.screencast.com/t/XFCl3D5Y