From 373f10a52b167bfd375fac6947860bf98ce505b5 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Wed, 18 Sep 2019 20:04:18 +0800 Subject: [PATCH] rotate_extrude 2D --- src/part/connector_peg.scad | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/part/connector_peg.scad b/src/part/connector_peg.scad index 0017ff85..bb94d36c 100644 --- a/src/part/connector_peg.scad +++ b/src/part/connector_peg.scad @@ -7,17 +7,14 @@ module connector_peg(shaft_r = 2.5, spacing = 0.5, void = false, heads = false) half_h_unit = h_unit / 2; module base(shaft_r, lip_r) { - linear_extrude(height) - circle(shaft_r); - - translate([0, 0, height]) - rotate_extrude() { - translate([0, -d_h_unit]) hull() { - square([lip_r - r_diff, d_h_unit]); - translate([0, half_h_unit]) - square([lip_r, half_h_unit]); - } + rotate_extrude() { + translate([0, -d_h_unit + height]) hull() { + square([lip_r - r_diff, d_h_unit]); + translate([0, half_h_unit]) + square([lip_r, half_h_unit]); } + square([shaft_r, height - d_h_unit]); + } } module peg() {