GithubHelp home page GithubHelp logo

lucasmoreira / delaunay-triangulation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kelvinhong/delaunay-triangulation

1.0 1.0 0.0 22 KB

Interactive Visualization of Delaunay triangulation

Python 100.00%

delaunay-triangulation's Introduction

Delaunay Mesh Creation Playground

Introduction

Given a set of points on the plane, it is a common problem on how we could connect them to form a connected graph, or as other people call a connected 2D-mesh. Obviously, a handcrafted solution is very time-consuming for a huge number of points. Delaunay Triangulation is an algorithm that automatically complete this task for us.

"Before Delaunay" "After Delaunay"

Prerequisite

Install packages with

pip install -r requirements.txt

This program is developed in Windows 10 with Python 3.9

How to use it

Run

python app.py

. A window will pop up. Press "Start" to begin.

Create some points by clicking on the white canvas. You can also use "Generate Points" to generate a bunch of random points quickly.

Click "Create Mesh" to utilize Delaunay algorithm to visualize the mesh creation on the canvas.

If you like the result, click "Export" to save the image inside the same working directory.

delaunay-triangulation's People

Contributors

kelvinhong avatar lucasmoreira avatar

Stargazers

 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.