From b2d8fa7fbf036da3df5fe3eee459cad3d01d1690 Mon Sep 17 00:00:00 2001 From: looooo Date: Mon, 3 Feb 2020 09:50:11 +0100 Subject: [PATCH] add clearence to rack --- pygears/involute_tooth.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pygears/involute_tooth.py b/pygears/involute_tooth.py index 221098b..56b2d56 100644 --- a/pygears/involute_tooth.py +++ b/pygears/involute_tooth.py @@ -171,13 +171,14 @@ class InvoluteRack(object): pressure_angle_t = arctan(tan(self.pressure_angle) / cos(self.beta)) m = self.m / cos(self.beta) - a = (2 + self.head) * m * tan(pressure_angle_t) + clearence = 0.25 + a = (2 + self.head + clearence) * m * tan(pressure_angle_t) b = (m * pi) / 4 - (1 + self.head) * m * tan(pressure_angle_t) tooth = [ - [-self.m, -a - b], + [-self.m * (1 + clearence), -a - b], [self.m * (1 + self.head), -b], [self.m * (1 + self.head), b], - [-self.m, a + b] + [-self.m * (1 + clearence), a + b] ] teeth = [tooth] trans = translation([0., m * pi, 0.])