Skip to content

Instantly share code, notes, and snippets.

Kevin Jardine kevinjardine

Block or report user

Report or block kevinjardine

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kevinjardine
kevinjardine / tiler.py
Created Jul 24, 2011
A universal tiler and polygon decompositor
View tiler.py
# To use this, you will want to change the location of the saved data
# at least and possibly the functions called below (at the end of the file).
# You first need to install the Python Shapely library for manipulating polygons:
# http://trac.gispython.org/lab/wiki/Shapely
from math import pi, sin, cos, atan2
import shapely.geometry
import sys, copy
@kevinjardine
kevinjardine / vertex_figure_search.py
Created May 13, 2011
Used by the Imperfect Congruence website
View vertex_figure_search.py
#Finds all possible regular polygon vertex types
# reduce the problem to integer math
# with a lowest common denominator
# that is divisible by all numbers up to 12
dem = 8*9*5*7*11
ang = {}
for i in range(3,13):
ang[i] = (dem / i) * (i-2)
You can’t perform that action at this time.