Skip to content

Instantly share code, notes, and snippets.

View nmullane's full-sized avatar
💭

Niall Mullane nmullane

💭
View GitHub Profile
@nmullane
nmullane / delaunay.py
Created September 12, 2019 20:51
Interactive Delaunay Triangulation in Python with Matplotlib
import numpy as np
import matplotlib.pyplot as plt
from scipy.spatial import Delaunay
from scipy.spatial import ConvexHull
from math import sqrt, ceil
"""
Generates the Delaunay Triangulation based off of interactive points in matplotlib
Points can be added by clicking and points can also be dragged around
"""