move code
This commit is contained in:
parent
9aad27ba36
commit
badade8b27
@ -132,11 +132,6 @@ vertices = [
|
|||||||
Vertex(4, Dec('179.336'), guess('150-15-41')),
|
Vertex(4, Dec('179.336'), guess('150-15-41')),
|
||||||
]
|
]
|
||||||
|
|
||||||
angle_sum = Dec(0)
|
|
||||||
for v in vertices:
|
|
||||||
angle_sum += v.ang
|
|
||||||
theoretical_angle_sum = Dec(int((len(vertices)-2)*180))
|
|
||||||
|
|
||||||
for i, v in enumerate(vertices[1:]):
|
for i, v in enumerate(vertices[1:]):
|
||||||
prev = vertices[i]
|
prev = vertices[i]
|
||||||
v.dirang = prev.dirang + 180 - v.ang
|
v.dirang = prev.dirang + 180 - v.ang
|
||||||
@ -144,6 +139,11 @@ for i, v in enumerate(vertices[1:]):
|
|||||||
v.dy = Dec(float(prev.len) * sin(float(prev.dirang) * pi/180))
|
v.dy = Dec(float(prev.len) * sin(float(prev.dirang) * pi/180))
|
||||||
v.coords = Point(prev.coords.acadx + v.dx, prev.coords.acady + v.dy)
|
v.coords = Point(prev.coords.acadx + v.dx, prev.coords.acady + v.dy)
|
||||||
|
|
||||||
|
angle_sum = Dec(0)
|
||||||
|
for v in vertices:
|
||||||
|
angle_sum += v.ang
|
||||||
|
theoretical_angle_sum = Dec(int((len(vertices)-2)*180))
|
||||||
|
|
||||||
# 9-kampio krastine D1
|
# 9-kampio krastine D1
|
||||||
D1 = Dec('174.667') + C
|
D1 = Dec('174.667') + C
|
||||||
# Daugiakampio pasukimo kampas (K1)
|
# Daugiakampio pasukimo kampas (K1)
|
||||||
|
Loading…
Reference in New Issue
Block a user