From bddcdba380a5bc5fc663c523406f3eb416055c19 Mon Sep 17 00:00:00 2001 From: LarsBrubaker Date: Wed, 20 Nov 2019 08:10:31 -0800 Subject: [PATCH] working on internal gear --- .../DesignTools/Primitives/Gear2D.cs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/MatterControlLib/DesignTools/Primitives/Gear2D.cs b/MatterControlLib/DesignTools/Primitives/Gear2D.cs index 056e94745..0f71d50e5 100644 --- a/MatterControlLib/DesignTools/Primitives/Gear2D.cs +++ b/MatterControlLib/DesignTools/Primitives/Gear2D.cs @@ -206,15 +206,17 @@ namespace MatterHackers.MatterControl.DesignTools var enlargedPinion = new Gear2D() { CircularPitch = pinion.CircularPitch, - // pressureAngle: pinion.pressureAngle, - // clearance: -pinion.clearance, - // backlash: -pinion.backlash, - // toothCount: pinion.toothCount, - // centerHoleDiameter: 0, - // profileShift: pinion.profileShift, - // stepsPerToothAngle: pinion.stepsPerToothAngle + PressureAngle = pinion.PressureAngle, + Clearance = -pinion.Clearance, + Backlash = -pinion.Backlash, + ToothCount = pinion.ToothCount, + CenterHoleDiameter = 0, + profileShift = pinion.profileShift, + stepsPerToothAngle = pinion.stepsPerToothAngle }; + enlargedPinion.CalculateDependants(); + var tooth = enlargedPinion.CreateSingleTooth(); return tooth.tooth.RotateZDegrees(90 + 180 / enlargedPinion.ToothCount); // we need a tooth pointing to the left }