Преглед на файлове

remove redundant transformations from Octathingy mount code

Fernando Pablo Lopez-Lezcano преди 10 години
родител
ревизия
2d4e4f3046
променени са 1 файла, в които са добавени 9 реда и са изтрити 6 реда
  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