cosmetics

This commit is contained in:
looooo
2020-08-24 21:51:42 +02:00
parent 3e996f7bfa
commit 47dcf319f3
2 changed files with 12 additions and 6 deletions

View File

@@ -846,6 +846,12 @@ class TimingGear(object):
else:
fp.Shape = Part.Face(wi).extrude(App.Vector(0, 0, fp.height))
def __getstate__(self):
pass
def __setstate__(self, state):
pass
class LanternGear(object):
def __init__(self, obj):
@@ -879,11 +885,6 @@ class LanternGear(object):
r_0 = m * teeth / 2
r_max = r_0 + r_r + fp.head * m
print("r_r: {}".format(r_r))
print("r_max: {}".format(r_max))
print("r_0: {}".format(r_0))
phi_max = (r_r + np.sqrt(r_max**2 - r_0**2)) / r_0
def find_phi_min(phi_min):
@@ -936,6 +937,12 @@ class LanternGear(object):
else:
fp.Shape = Part.Face(wi).extrude(App.Vector(0, 0, fp.height))
def __getstate__(self):
pass
def __setstate__(self, state):
pass
def part_arc_from_points_and_center(p_1, p_2, m):

View File

@@ -48,7 +48,6 @@ def rotation(angle, midpoint=None):
[sin(angle), cos(angle)]])
midpoint = array(midpoint)
vec = midpoint - dot(midpoint, mat)
print(vec)
trans = translation(vec)
def func(xx):