From: daniel watson Date: Thu, 3 Sep 2015 20:56:50 +0000 (-0700) Subject: use hull for gap around sonar sensor X-Git-Url: http://challenge-bot.com/repos/?p=challenge-bot;a=commitdiff_plain;h=c0c4e0e01924f0a007b672e53eb2d1d573b088e6 use hull for gap around sonar sensor * use hull instead of cube of calculated size --- diff --git a/3d-printables/sonar-table-top-holder-data.scad b/3d-printables/sonar-table-top-holder-data.scad index 2bfe1b0..bb6d0ce 100644 --- a/3d-printables/sonar-table-top-holder-data.scad +++ b/3d-printables/sonar-table-top-holder-data.scad @@ -47,12 +47,11 @@ module sonar_holder_2d() { module sonars() { translate([between_sonar_centers / 2, 0, 0]) { - cylinder(r = sonar_radius, h = sonar_height); } - // for the variance with which the physical sonar cylinders are placed - translate([between_sonar_centers / 2 - between_sonar_centers_variance, 0, 0]) { - cylinder(r = sonar_radius, h = sonar_height); - translate([0, -sonar_radius, 0]) { - cube([between_sonar_centers_variance, sonar_diameter, sonar_height]); } } + hull() { + cylinder(r = sonar_radius, h = sonar_height); + // for the variance with which the physical sonar cylinders are placed + translate([ -between_sonar_centers_variance, 0, 0]) { + cylinder(r = sonar_radius, h = sonar_height); } } } translate([-between_sonar_centers / 2, 0, 0]) { cylinder(r = sonar_radius, h = sonar_height); } }