This commit is contained in:
dingfeng.wong
2025-07-22 00:29:15 +08:00
parent 49a7d3f283
commit 71946ec4f3
+5 -1
View File
@@ -62,8 +62,11 @@ module trapezium_with_rectangle_2d(
//trapezium_2d(base_width = 20, top_width = 10, height = 15);
//translate([30, 0]) rectangle_2d(width = 8, height = 5);
// Combined shape:
// Combined shape extruded to 3D:
rect_height_val = 1.7;
extrude_height = 15;
linear_extrude(height = extrude_height) {
trapezium_with_rectangle_2d(
trap_base_width = 10.95,
trap_top_width = 5.5,
@@ -72,3 +75,4 @@ trapezium_with_rectangle_2d(
rect_height = rect_height_val,
rect_offset = -rect_height_val/2 // Half of rectangle height to center it at base edge
);
}