From c0c4e0e01924f0a007b672e53eb2d1d573b088e6 Mon Sep 17 00:00:00 2001 From: daniel watson Date: Thu, 3 Sep 2015 13:56:50 -0700 Subject: [PATCH] use hull for gap around sonar sensor * use hull instead of cube of calculated size --- 3d-printables/sonar-table-top-holder-data.scad | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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); } } -- 2.30.2