use hull for gap around sonar sensor
[challenge-bot] / 3d-printables / sonar-table-top-holder-data.scad
index 2bfe1b060cf210b9412a9a350ad4221473b96c88..bb6d0ce073de731f18aa1aaf179ae16b22033291 100644 (file)
@@ -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); } }