Add Cable recess

This commit is contained in:
maride 2017-12-20 19:53:13 +01:00
parent 7f92362360
commit 73657421a4

View File

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