Add PSU Plane

This commit is contained in:
maride 2017-12-20 19:52:07 +01:00
parent c27c5434f9
commit 7f92362360

View File

@ -1,4 +1,4 @@
round_base_plane(300, 200, 5, 20, 20, 10); round_psu_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) {
@ -37,6 +37,15 @@ module round_base_plane(width, height, hole_size, hole_spacing_x, hole_spacing_y
} }
} }
module round_psu_plane(width, height, hole_size, hole_spacing_x, hole_spacing_y, radius, psu_width, psu_height) {
difference() {
round_base_plane(width, height, hole_size, hole_spacing_x, hole_spacing_y, radius);
translate([width-psu_width, height/2-psu_height/2])
square([psu_width, psu_height]);
}
}
module __radius_cutout(radius) { module __radius_cutout(radius) {
difference() { difference() {
translate([radius/2, radius/2, 0]) translate([radius/2, radius/2, 0])