From 482350fb1b5cdfa0cfdc01e443bff98819aff44e Mon Sep 17 00:00:00 2001 From: maride Date: Wed, 20 Dec 2017 19:57:52 +0100 Subject: [PATCH] Add combined PSU and cable module --- Matekiste_Laser_Stencil.scad | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Matekiste_Laser_Stencil.scad b/Matekiste_Laser_Stencil.scad index ea22ab6..fbce4ad 100644 --- a/Matekiste_Laser_Stencil.scad +++ b/Matekiste_Laser_Stencil.scad @@ -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])