From 402de8c9266b29e94c5d23f3020f9ebd67ea7bdf Mon Sep 17 00:00:00 2001 From: Nicholas Boone Date: Thu, 29 May 2025 09:45:54 -0700 Subject: [PATCH] Update cam --- public/kcl-samples/camshaft/main.kcl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/kcl-samples/camshaft/main.kcl b/public/kcl-samples/camshaft/main.kcl index 2f7283d96..1efa9acd8 100644 --- a/public/kcl-samples/camshaft/main.kcl +++ b/public/kcl-samples/camshaft/main.kcl @@ -83,10 +83,11 @@ fn cylinderPattern(@i) { |> patternTransform(instances = round(valvesPerCylinder / 2), transform = valveCount) |> patternTransform(instances = cylinderCount, transform = cylinderPattern) -// Extrude a center connecting cylinder shaft to each cam position +// Extrude a center connecting cylinder shaft through each cam position +length = (2 * (camHeight + camSpacing) * round(valvesPerCylinder / 2) + supportBearingWidth) * cylinderCount + supportBearingWidth centerShaft = startSketchOn(XY) |> circle(center = [0, 0], diameter = shaftDiameter) - |> extrude(length = (2 * (camHeight + camSpacing) * round(valvesPerCylinder / 2) + supportBearingWidth) * cylinderCount + supportBearingWidth) + |> extrude(length) // Attach a helical timing gear to the base of the camshaft fn helicalGear(nTeeth, module, pressureAngle, helixAngle, gearHeight) {