Code Monkey home page Code Monkey logo

comp494-mini-project-2's Introduction

COMP494-MINI-PROJECT-2

This project generates a Voronoi diagram using Fortune's algorithm. The implementation includes classes for points, events, arcs, segments, and a priority queue. Additionally, a simple graphical user interface (GUI) is provided using the tkinter library for visualizing the Voronoi diagram interactively.

Usage

  1. Manually Add Points:

    • Double-click on the canvas to add points manually.
  2. Calculate Voronoi Diagram:

    • Click the "Calculate" button to compute the Voronoi diagram based on the input points.
  3. Visualize Steps:

    • Click the "Next" button to visualize each step of the algorithm.
  4. Clear Canvas:

    • Click the "Clear" button to reset the canvas and add new points.

Installation

  1. Clone the repository:

    git clone https://github.com/ShengyuanWang/COMP494-MINI-PROJECT-2.git
  2. Navigate to the project directory:

    cd Voroni
  3. Run the script:

    python3 test.py

References

The implementation is based on Fortune's algorithm for Voronoi diagram generation. Here are some references that were consulted during the development:

  1. Beach Line (Geometry) - Wikipedia
  2. Fortune's Algorithm - Wikipedia
  3. Voronoi Diagrams in Python
  4. Fortune's Algorithm: A Visual Explanation
  5. Fortune Algorithm Details

Acknowledgments

Special thanks to the authors and contributors of the referenced materials for providing valuable insights into the Voronoi diagram generation algorithm.

comp494-mini-project-2's People

Contributors

shengyuanwang avatar

Watchers

 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.