From d2848a78a107f02e85f3864426ef8d8d1d3a749a Mon Sep 17 00:00:00 2001 From: looooo Date: Wed, 26 Feb 2020 12:54:20 +0100 Subject: [PATCH] rack: small modifications --- pygears/involute_tooth.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pygears/involute_tooth.py b/pygears/involute_tooth.py index 9b470f5..96cc735 100644 --- a/pygears/involute_tooth.py +++ b/pygears/involute_tooth.py @@ -196,17 +196,17 @@ class InvoluteRack(object): teeth = [tooth] trans = translation([0., pitch, 0.]) for i in range(self.z - 1): - if self.simplified and i > 2 and i < (self.z - 5): + if self.simplified and i > 3 and i < (self.z - 6): tooth = trans(tooth).tolist() else: tooth = trans(tooth).tolist() teeth.append(copy.deepcopy(tooth)) - if self.simplified and (i == 2): + if self.simplified and (i == 3): teeth[-1].pop() teeth[-1].pop() teeth[-1][-1][0] = 0 teeth[-1][-1][1] -= a / 2 - if self.simplified and (i == self.z - 5): + if self.simplified and (i == self.z - 6): teeth[-1].pop(0) teeth[-1].pop(0) teeth[-1][0][0] = 0