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 /
Created Jul 24, 2011
A universal tiler and polygon decompositor
# 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:
from math import pi, sin, cos, atan2
import shapely.geometry
import sys, copy
kevinjardine /
Created May 13, 2011
Used by the Imperfect Congruence website
#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.