Add combined PSU and cable module
This commit is contained in:
parent
73657421a4
commit
482350fb1b
@ -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;
|
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) {
|
||||||
@ -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) {
|
module __radius_cutout(radius) {
|
||||||
difference() {
|
difference() {
|
||||||
translate([radius/2, radius/2, 0])
|
translate([radius/2, radius/2, 0])
|
||||||
|
Loading…
Reference in New Issue
Block a user