1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-09 08:16:50 +02:00

rotate_extrude 2D

This commit is contained in:
Justin Lin
2019-09-18 20:04:18 +08:00
parent 0edf8c2946
commit 373f10a52b

View File

@@ -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() {