Round cable cutout

This commit is contained in:
maride 2017-12-20 20:19:04 +01:00
parent b30e6d533a
commit 07b2586a7e

View File

@ -62,8 +62,27 @@ module round_cable_plane(width, height, hole_size, hole_spacing_x, hole_spacing_
difference() { difference() {
round_base_plane(width, height, hole_size, hole_spacing_x, hole_spacing_y, radius); round_base_plane(width, height, hole_size, hole_spacing_x, hole_spacing_y, radius);
translate([0, height/2-cable_height/2]) difference() {
square([cable_width, cable_height]); 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);
}
} }
} }