Bladeren bron

h2n: bridge now renders correctly with no invisible gaps

Fernando Pablo Lopez-Lezcano 9 jaren geleden
bovenliggende
commit
304a0be9f6
1 gewijzigde bestanden met toevoegingen van 13 en 13 verwijderingen
  1. 13 13
      TinySpHEAR_H2N_common.scad

+ 13 - 13
TinySpHEAR_H2N_common.scad

@@ -119,21 +119,21 @@ module h2n_columns(width, height, ring_height, tilt, band, transition, radius, w
 
 // bridge that connects to capsule array
 
-module semi_cylinder(r, h, e = thin_mint) {
+module semi_cylinder(r, h) {
     difference() {
         cylinder(h, r, r, $fn = facets);
-        translate ([-r*2, -(r+e), -e])
-            cube([2*(r+e), 2*(r+e), h+2*e]);
+        translate ([-r*2, -r, 0])
+            cube([2*r, 2*r, h]);
     }
 }
 
-module quarter_sphere(r, e = thin_mint) {
+module quarter_sphere(r) {
     difference() {
         sphere(r, $fn = facets);
         translate([-r, -r, -r])
-            cube([2*(r+e), 2*(r+e), (r+e)]);
+            cube([2*r, 2*r, r]);
         translate([-r, -r, 0])
-            cube([(r+e), 2*(r+e), (r+e)]);
+            cube([r, 2*r, r]);
     }
 }
 
@@ -160,11 +160,11 @@ module h2n_bridge(width, height, ring_height, ring_wall, tilt, band, transition,
     // stalk
     translate([0, 0, band]) {
         difference() {
-            tube(mount_radius + wall, mount_radius, 20.0);
-            // remove the part of the stalk that is inside the bridge
-            translate([width / 2, 0, -4*thin_mint]) {
+            tube(mount_radius + wall, mount_radius, 20.0 + 1.0);
+            // remove stalk segment that is inside the bridge
+            translate([width / 2, 0, -1.0]) {
                 rotate([0, -90, 0]) {
-                    semi_cylinder(r = radius + col_wall - wall, h = width);
+                    semi_cylinder(r = radius + col_wall, h = width);
                 }
             }
         }
@@ -239,11 +239,11 @@ h2n_col_wall = 2 * wall;
 difference() {
 union() {
 
-h2n_ring(h2n_width_m, h2n_depth_m, h2n_depth * 0.425, h2n_band_height, h2n_side_band_w, h2n_side_band, h2n_band_wall, 0.0, wall);
+*h2n_ring(h2n_width_m, h2n_depth_m, h2n_depth * 0.425, h2n_band_height, h2n_side_band_w, h2n_side_band, h2n_band_wall, 0.0, wall);
 
-h2n_columns(h2n_width_m, connector_height, h2n_band_height, 4.0, 10.0, transition_height, mount_radius + h2n_col_wall, h2n_col_wall);
+*h2n_columns(h2n_width_m, connector_height, h2n_band_height, 4.0, 10.0, transition_height, mount_radius + h2n_col_wall, h2n_col_wall);
 
-*h2n_bridge(h2n_width_m, connector_height, h2n_band_height, h2n_band_wall, 4.0, 10.0, transition_height, mount_radius, h2n_col_wall, wall);
+h2n_bridge(h2n_width_m, connector_height, h2n_band_height, h2n_band_wall, 4.0, 10.0, transition_height, mount_radius, h2n_col_wall, wall);
 
 }
 *translate([-40, -50, 0]) {