From 6172eae3852f8fdcc823ed00ca0a74a9432d4e25 Mon Sep 17 00:00:00 2001 From: looooo Date: Wed, 30 Sep 2020 17:26:52 +0200 Subject: [PATCH] pygears: fix profile --- pygears/profile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pygears/profile.py b/pygears/profile.py index 15503df..2a5970a 100644 --- a/pygears/profile.py +++ b/pygears/profile.py @@ -15,9 +15,10 @@ class _GearProfile(object): else: rot = rotation(- np.pi * 2 / self.z) profile = tooth - for i in range(self.z): + for i in range(self.z - 1): tooth = rot(tooth).tolist() profile = profile + tooth + profile.append(profile[0]) return np.array(profile) class InvoluteProfile(InvoluteTooth, _GearProfile):