mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-09 16:26:47 +02:00
rotate_extrude 2D
This commit is contained in:
@@ -7,17 +7,14 @@ module connector_peg(shaft_r = 2.5, spacing = 0.5, void = false, heads = false)
|
|||||||
half_h_unit = h_unit / 2;
|
half_h_unit = h_unit / 2;
|
||||||
|
|
||||||
module base(shaft_r, lip_r) {
|
module base(shaft_r, lip_r) {
|
||||||
linear_extrude(height)
|
rotate_extrude() {
|
||||||
circle(shaft_r);
|
translate([0, -d_h_unit + height]) hull() {
|
||||||
|
square([lip_r - r_diff, d_h_unit]);
|
||||||
translate([0, 0, height])
|
translate([0, half_h_unit])
|
||||||
rotate_extrude() {
|
square([lip_r, half_h_unit]);
|
||||||
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]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
square([shaft_r, height - d_h_unit]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module peg() {
|
module peg() {
|
||||||
|
Reference in New Issue
Block a user