Add combined PSU and cable module

This commit is contained in:
maride 2017-12-20 19:57:52 +01:00
parent 73657421a4
commit 482350fb1b

View File

@ -1,4 +1,4 @@
round_cable_plane(300, 200, 5, 20, 20, 10, 40, 90);
round_psu_cable_plane(300, 200, 5, 20, 20, 10, 40, 90, 90, 90);
RESOLUTION=36;
module base_plane(width, height, hole_size, hole_spacing_x, hole_spacing_y) {
@ -54,6 +54,13 @@ module round_cable_plane(width, height, hole_size, hole_spacing_x, hole_spacing_
}
}
module round_psu_cable_plane(width, height, hole_size, hole_spacing_x, hole_spacing_y, radius, psu_width, psu_height, cable_width, cable_height) {
intersection() {
round_psu_plane(width, height, hole_size, hole_spacing_x, hole_spacing_y, radius, psu_width, psu_height);
round_cable_plane(width, height, hole_size, hole_spacing_x, hole_spacing_y, radius, cable_width, cable_height);
}
}
module __radius_cutout(radius) {
difference() {
translate([radius/2, radius/2, 0])