Giter Club home page Giter Club logo

compgeomdemo's People

Contributors

alangpierce avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

compgeomdemo's Issues

Display the original triangulation in light gray to make it more obvious what the previous steps were

There are a few ways to approach this issue. One way is to have the entire original triangulation in the "background" in gray, up until the end.

Another potential idea is to only have the original triangulation for just this recursive call. So, the background builds at each step when we build up the

Another idea is to only show the original points, since we don't really need the original edges anymore (and the algorithm doesn't use those edges, or even have access to them).

Regardless of which one is done, a potentially nice-looking way to do this is to have each point slowly fade in as the red and blue triangulations are built. More specifically, a point that is in the triangulation might have opacity 1, while a point that is not in the triangulation might have an opacity between 0 (or some small value) and .5, where .5 means that it is the next point to be added, and 0 means that it is the last point to be added.

Add a way to cancel the computation

Currently you need to press space over and over to get out of the computation. There should really be some button to go back to the point insert mode, preferably with the original set of points intact (in case you accidentally start the computation before you meant to).

Add some explanation of running time

A big part of the cleverness of the algorithm is that some steps run in constant time for nontrivial reasons. Each step like this should have at least some explanation for why the running time is constant.

Step 5 of the algorithm isn't explained very well

The step of the algorithm that places the vertex back into the triangulation isn't fully explained.

A good explanation would go as follows:

The point, disconnected from the graph, is added back in, and it and the previous nearest neighbor are highlighted. The triangles adjacent to the nearest neighbor are then highlighted in clockwise order starting from an arbitrary point until the one containing the newly added point is highlighted. The new edges are then added and we move to step 6.

Add a "play continuously" feature

It's sometimes annoying to have to press space over and over to step the algorithm. A nice feature would be to have it step automatically at a fixed rate (e.g. once a second).

The feature should probably be toggled with a check box. It may also be good to be able to set the step frequency.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.