Sfoglia il codice sorgente

remove redundant transformations from Octathingy mount code

Fernando Pablo Lopez-Lezcano 10 anni fa
parent
commit
2d4e4f3046
1 ha cambiato i file con 9 aggiunte e 6 eliminazioni
  1. 9 6
      Octathingy_mount_pcb.scad

+ 9 - 6
Octathingy_mount_pcb.scad

@@ -336,12 +336,15 @@ module octa_mount_flare_dual(height, lip, transition, xradius, yradius, corner,
 
 module octa_capsule_array_mount(angles) {
     difference() {
-        translate([0, 0, 0]) {
-            rotate([0, 0, 45]) {
-                difference() {
-                    cylinder(h = mount_top_height, r1 = mount_radius + wall, r2 = mount_radius_capsule, $fn = facets);
-                    cylinder(h = mount_top_height, r1 = mount_radius, r2 = mount_radius_capsule - 1.2 * wall, $fn = facets);
-                }
+        union() {
+            difference() {
+                cylinder(h = mount_top_height, r1 = mount_radius + wall, r2 = mount_radius_capsule, $fn = facets);
+                cylinder(h = mount_top_height, r1 = mount_radius, r2 = mount_radius_capsule - 1.2 * wall, $fn = facets);
+            }
+            // second set of optional "leaves" to get a better mount
+            *difference() {
+                cylinder(h = mount_top_height, r1 = mount_radius + wall, r2 = mount_radius_capsule * 0.8, $fn = facets);
+                cylinder(h = mount_top_height, r1 = mount_radius, r2 = mount_radius_capsule * 0.8 - 1.2 * wall, $fn = facets);
             }
         }
         // indentations that match the four lower capsule holders