This commit is contained in:
dingfeng.wong
2025-07-22 00:49:32 +08:00
parent cb6cf91660
commit 40e9ec35f8
+3 -3
View File
@@ -67,7 +67,7 @@ module trapezium_with_rectangle_2d(
// Combined shape extruded to 3D with M3 nut hole: // Combined shape extruded to 3D with M3 nut hole:
rect_height_val = 1.7; rect_height_val = 1.7;
extrude_height = 15; extrude_height = 10;
difference() { difference() {
// Main extruded shape // Main extruded shape
@@ -78,7 +78,7 @@ difference() {
trap_height = 4.0, trap_height = 4.0,
rect_width = 6.3, rect_width = 6.3,
rect_height = rect_height_val, rect_height = rect_height_val,
rect_offset = -rect_height_val/2 // Half of rectangle height to center it at base edge rect_offset = -rect_height_val/2 + 0.01 // Small overlap for clean union
); );
} }
@@ -92,7 +92,7 @@ difference() {
// M3 bolt hole through entire trapezium // M3 bolt hole through entire trapezium
translate([0, 4.0/2, extrude_height/2]) { translate([0, 4.0/2, extrude_height/2]) {
rotate([90, 0, 0]) { rotate([90, 0, 0]) {
cylinder(h = 20, d = 3.2, center = true, $fn = 32); // Long M3 clearance hole cylinder(h = rect_height_val + 20, d = 3.2, center = true, $fn = 32); // Long M3 clearance hole
} }
} }
} }