This commit is contained in:
dingfeng.wong
2025-07-22 00:29:15 +08:00
parent 49a7d3f283
commit 71946ec4f3
+13 -9
View File
@@ -62,13 +62,17 @@ 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;
trapezium_with_rectangle_2d(
trap_base_width = 10.95,
trap_top_width = 5.5,
trap_height = 4.0,
rect_width = 6.3,
rect_height = rect_height_val,
rect_offset = -rect_height_val/2 // Half of rectangle height to center it at base edge
);
extrude_height = 15;
linear_extrude(height = extrude_height) {
trapezium_with_rectangle_2d(
trap_base_width = 10.95,
trap_top_width = 5.5,
trap_height = 4.0,
rect_width = 6.3,
rect_height = rect_height_val,
rect_offset = -rect_height_val/2 // Half of rectangle height to center it at base edge
);
}