-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebug.py
44 lines (36 loc) · 1.05 KB
/
debug.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from quad_functions import *
def debug():
'''
point1 = Point(5, 7)
point2 = Point(3, 4)
point3 = Point(2, 1)
point4 = Point(7, 6)
point5 = Point(2, 0)
point6 = Point(5, 1)
point7 = Point(3, 2)
point8 = Point(1, 3)
point9 = Point(0, 0)
line1 = Line(point1, point2)
line2 = Line(point3, point4)
line3 = Line(point7, point8)
'''
point1 = Point(0, 0)
point2 = Point(0, 6)
point3 = Point(6, 0)
point4 = Point(6, 6)
point5 = Point(1, 3)
point6 = Point(2, 1)
point7 = Point(4, 3)
point8 = Point(5, 1)
point_set = [point1, point2, point3, point4]
print gift_wrap(point_set)
point_set2 = [point5, point6, point7, point8]
print gift_wrap(point_set2)
quad = deconstruct_quad(reorient_quad(gift_wrap(point_set2)))
print aspect_ratio(quad)
print skew(quad)
'''
point_list = file_to_points(sys.argv[1])
line_list = find_lines(point_list)
print line_list
'''