add the final vertex
This commit is contained in:
parent
e29f86312b
commit
f3cfc7f314
Binary file not shown.
@ -64,6 +64,8 @@ vertices = [
|
|||||||
Vertex(1, Dec('151.531'), guess('101-20-01')),
|
Vertex(1, Dec('151.531'), guess('101-20-01')),
|
||||||
Vertex(4, Dec('179.336'), guess('150-15-41')),
|
Vertex(4, Dec('179.336'), guess('150-15-41')),
|
||||||
]
|
]
|
||||||
|
# adding the 11'th vertex to the end to see if the coordinates match
|
||||||
|
vertices.append(Vertex(11, Dec('164.126'), guess('103-03-03')))
|
||||||
|
|
||||||
angle_sum = Dec(0)
|
angle_sum = Dec(0)
|
||||||
for v in vertices:
|
for v in vertices:
|
||||||
@ -102,7 +104,7 @@ if __name__ == '__main__':
|
|||||||
(angle_sum, theoretical_angle_sum))
|
(angle_sum, theoretical_angle_sum))
|
||||||
|
|
||||||
for i, v in enumerate(vertices):
|
for i, v in enumerate(vertices):
|
||||||
nxt = vertices[0 if i == len(vertices) - 1 else i+1]
|
nxt = vertices[1 if i == len(vertices) - 1 else i+1]
|
||||||
|
|
||||||
pts = "%d-%d" % (v.point, nxt.point)
|
pts = "%d-%d" % (v.point, nxt.point)
|
||||||
draw = "@%.3f<%.4f" % (v.len, 90 - v.dirang)
|
draw = "@%.3f<%.4f" % (v.len, 90 - v.dirang)
|
||||||
|
Loading…
Reference in New Issue
Block a user