From 4176e9500070650e719cf2085f9f219ee0552268 Mon Sep 17 00:00:00 2001 From: Quinn Date: Sun, 6 Feb 2022 17:02:59 -0800 Subject: [PATCH] Upgraded shape gate for 3.0 --- shape_gate.scad | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shape_gate.scad b/shape_gate.scad index 464adf3..49ad4d9 100644 --- a/shape_gate.scad +++ b/shape_gate.scad @@ -8,8 +8,9 @@ module shape_gate (shape, throw, shaft_r, sharpness = 0) { function throw_travel(throw) = gate_height * tan(throw); hull(){ - linear_extrude(0.1) - round_poly(shape, shaft_r, 0, sharpness); + translate([0,0, -(shaft_r / tan(throw))]) + linear_extrude(0.1) + round_poly(shape, 0, 0, sharpness); translate([0,0,gate_height]) linear_extrude(0.00001) round_poly(shape, shaft_r, throw_travel(throw), sharpness);