Giter Site home page Giter Site logo

visual-fortune-algorithm's Introduction

About

This originally has been a Java applet that implements a visualization of Fortune’s plane-sweep algorithm for creating a voronoi diagram. You can view a live demo of this original applet. The applet was created by Benny Kjær Nielsen and Allan Odgaard in spring of 2000 following a course in Computational Geometry taught by Pawel Winter at DIKU.

The source code has then been reworked, refactored and improved by Sebastian Kürten. It now works as a standalone Swing application rather than an applet. Also there is a port via GWT to Javascript.

License

The original authors state the following:

Permission to copy, use, modify, sell and distribute this software is granted. This software is provided “as is” without express or implied warranty, and with no claim as to its suitability for any purpose.

I release this modified version of the software as a whole under the terms of the GNU General Public License Version 3 (GNU GPLv3).

Building and Running

To build the project, use ant:

ant compile

To run the Swing application, run the following:

java -cp bin:lib/*:lib/batik/*:. fortune.sweep.gui.swing.SwingFortune

Or alternatively:

ant dist

java -cp dist/fortune.jar fortune.sweep.gui.swing.SwingFortune

Notes

The purpose of the source is to visualize the algorithm, it is not a good base for an efficient implementation of the algorithm (it does not run in O(n log n) time).

The original source was initially lost and recovered using a Java decompiler so most variable names are nonsensical. After extensive rework, for most of the code this is not true anymore since the code has been heavily refactored, modified and commented.

visual-fortune-algorithm's People

Contributors

sebkur avatar sorbits avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

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.