From 07b2586a7e6c71db18e7843ad52ba210e72b6554 Mon Sep 17 00:00:00 2001 From: maride Date: Wed, 20 Dec 2017 20:19:04 +0100 Subject: [PATCH] Round cable cutout --- Matekiste_Laser_Stencil.scad | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/Matekiste_Laser_Stencil.scad b/Matekiste_Laser_Stencil.scad index 13c843d..676a27b 100644 --- a/Matekiste_Laser_Stencil.scad +++ b/Matekiste_Laser_Stencil.scad @@ -62,8 +62,27 @@ module round_cable_plane(width, height, hole_size, hole_spacing_x, hole_spacing_ 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]); + difference() { + union() { + translate([0, height/2-cable_height/2]) + square([cable_width, cable_height]); + + // Outer rounds + translate([radius, height/2-cable_height/2-radius]) + rotate([0, 0, 90]) + __radius_cutout(radius); + translate([radius, height/2+cable_height/2+radius]) + rotate([0, 0, 180]) + __radius_cutout(radius); + } + + // Inner rounds + translate([cable_width-radius, height/2+cable_height/2-radius]) + __radius_cutout(radius); + translate([cable_width-radius, height/2-cable_height/2+radius]) + rotate([0, 0, 270]) + __radius_cutout(radius); + } } }