From 47dcf319f3fe687ba57499d07a82ad82c627f777 Mon Sep 17 00:00:00 2001 From: looooo Date: Mon, 24 Aug 2020 21:51:42 +0200 Subject: [PATCH] cosmetics --- freecad/gears/features.py | 17 ++++++++++++----- pygears/_functions.py | 1 - 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/freecad/gears/features.py b/freecad/gears/features.py index 749692a..bba1821 100644 --- a/freecad/gears/features.py +++ b/freecad/gears/features.py @@ -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): diff --git a/pygears/_functions.py b/pygears/_functions.py index 9310a16..1d04a7b 100644 --- a/pygears/_functions.py +++ b/pygears/_functions.py @@ -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):