Add PSU Plane
This commit is contained in:
parent
c27c5434f9
commit
7f92362360
@ -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;
|
||||
|
||||
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) {
|
||||
difference() {
|
||||
translate([radius/2, radius/2, 0])
|
||||
|
Loading…
Reference in New Issue
Block a user