working on internal gear

This commit is contained in:
LarsBrubaker 2019-11-20 08:10:31 -08:00
parent 267b0d845c
commit bddcdba380

View file

@ -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
}