Просмотр исходного кода

remove windscreen components from the TinySpHEAR_mount_pcb file

Fernando Pablo Lopez-Lezcano 9 лет назад
Родитель
Сommit
119baa4d84
1 измененных файлов с 0 добавлено и 276 удалено
  1. 0 276
      TinySpHEAR_mount_pcb.scad

+ 0 - 276
TinySpHEAR_mount_pcb.scad

@@ -643,247 +643,6 @@ module tetra_capsule_array_mount(angles, mount_radius, mount_wall) {
     }
 }
 
-// windscreen frame
-
-module tetra_windscreen(radius, corner, height, beam_radius, twist, support) {
-    // octagonal helix windscreen frame
-    for (r = [0, 45, 90, 135, 180, -135, -90, -45]) for (t = [1, -1]) rotate([0, 0, r]) {
-        linear_extrude(height = height, center = false, convexity = 0, twist = twist * t, $fn = facets) {
-            translate([radius + beam_radius + windscreen_thread_depth, 0, 0]) {
-                // square(size = beam_radius * 1.5, center = true);
-                circle(r = beam_radius, $fn = facets);
-            }
-        }
-    }
-    // connectors to top
-    translate([0, 0, height]) {
-        for (r = [0, 45, 90, 135, 180, -135, -90, -45]) rotate([0, 0, r + twist]) {
-            translate([radius + beam_radius + windscreen_thread_depth, 0, 0]) {
-                // cylinder(r = beam_radius * 2/3, h = 2.0, $fn = facets);
-                cylinder(r = beam_radius * 1, h = 2.0, $fn = facets);
-                //
-                // suppport structure for standalone beams
-                // these are removed after printing
-                if (support) {
-                    for (s = [0, -129, 120]) rotate([0, 0, s]) {
-                        translate([0, -0.3, 0]) {
-                            cube([6, 0.6, 2]);
-                        }
-                    }
-                }
-            }
-        }
-    }
-}
-
-// windscreen frame
-
-module tetra_windscreen_frame(sides, radius, height, beam_radius, twist) {
-    inc = 360/sides;
-    for (r = [0:inc:360]) for (t = [1, -1]) rotate([0, 0, r]) {
-        render() linear_extrude(height = height, center = false, convexity = 0, twist = twist * t, $fn = facets) {
-            translate([radius, 0, 0]) {
-                circle(r = beam_radius, $fn = facets);
-            }
-        }
-    }
-}
-
-// windscreen inset frame
-
-module tetra_windscreen_inset_frame(sides, radius, iradius, height, beam_radius, xscale = 1.0, yscale = 1.0) {
-    inc = 360/sides;
-    difference() {
-        for (r = [0:inc:360]) for (t = [1, -1]) rotate([0, 0, r]) {
-            render() {
-                hull() {
-                    translate([iradius, 0, 0]) {
-                        scale([xscale, yscale, 1.0]) cylinder(r = beam_radius, h = thin_mint, $fn = facets);
-                    }
-                    rotate([0, 0, inc/2 * t]) translate([radius, 0, height]) {
-                        cylinder(r = beam_radius, h = thin_mint, $fn = facets);
-                    }
-                }
-            }
-        }
-        cylinder(r = iradius, h = height, $fn = facets);
-    }
-}
-
-// windscreen frame reinforcements
-
-module tetra_windscreen_frame_reinforcements(sides, radius, beam_radius, zrotation, yrotation) {
-    for (r = [0:360/sides:360]) rotate([0, 0, r + zrotation]) {
-        translate([radius, 0, 0]) {
-            render() rotate([0, yrotation, 0]) intersection() {
-                scale([1.0, 1.55, 1.0]) {
-                    translate([0, 0, -beam_radius * 2]) {
-                        cylinder(r = beam_radius, h = beam_radius * 4, $fn = facets);
-                    }
-                }
-                scale([1, 2, 2.5]) sphere(r = beam_radius, $fn = facets);
-            }
-        }
-    }
-}
-
-// windscreen frame dome (two plus two)
-
-module tetra_windscreen_dome_two(radius, beam_radius) {
-    rad = radius * cos(180/8);
-    difference() {
-        for (r = [0, 90]) rotate([0, 0, r]) {
-            for (t = [1, -1]) {
-                translate([(rad/2 - 1.73 * beam_radius) * t, rad, 0]) rotate([0, 90, 0]) {
-                    translate([0, -rad, 0]) {
-                        rotate_extrude(convexity = 10, $fn = facets) {
-                            translate([rad, 0, 0]) {
-                                circle(r = beam_radius, $fn = facets);
-                            }
-                        }
-                    }
-                }
-            }
-        }
-        brad = rad + beam_radius + thin_mint;
-        translate([-brad, -brad, - 2 * brad]) {
-            cube([2 * brad, 2 * brad, 2 * brad]);
-        }
-    }
-}
-
-// windscreen frame dome (three plus three)
-
-module tetra_windscreen_dome_three(radius, beam_radius) {
-    difference() {
-        for (r = [0, 90]) rotate([0, 0, r + 22.5]) {
-            translate([0, 0, 0]) rotate([0, 90, 0]) {
-                rotate_extrude(convexity = 10, $fn = facets) {
-                    translate([radius, 0, 0]) {
-                        circle(r = beam_radius, $fn = facets);
-                    }
-                }
-            }
-            for (t = [1, -1]) {
-                translate([radius * cos(45) * t, 0, 0]) rotate([0, 90, 0]) {
-                    rotate_extrude(convexity = 10, $fn = facets) {
-                        translate([radius * cos(45), 0, 0]) {
-                            circle(r = beam_radius, $fn = facets);
-                        }
-                    }
-                }
-            }
-        }
-        brad = radius + 2 * beam_radius + thin_mint;
-        translate([-brad, -brad, - 2 * brad]) {
-            cube([2 * brad, 2 * brad, 2 * brad]);
-        }
-    }
-}
-
-module tetra_windscreen_dome_three_n(radius, beam_radius) {
-    difference() {
-        for (r = [0, 90]) rotate([0, 0, r + 22.5]) {
-            for (t = [1, -1]) {
-                translate([radius * cos(45) * t, 0, 0]) rotate([0, 90, 0]) {
-                    rotate_extrude(convexity = 10, $fn = facets) {
-                        translate([radius * cos(45), 0, 0]) {
-                            circle(r = beam_radius, $fn = facets);
-                        }
-                    }
-                }
-            }
-        }
-        brad = radius + 2 * beam_radius + thin_mint;
-        translate([-brad, -brad, - 2 * brad]) {
-            cube([2 * brad, 2 * brad, 2 * brad]);
-        }
-    }
-}
-
-module tetra_windscreen_dome(sides, radius, beam_radius) {
-    arcs = sides/2 - 1;
-    ang = 360 / sides;
-    difference() {
-        for (r = [0, 90]) rotate([0, 0, r]) {
-            for (t = [1, -1]) {
-                translate([radius * sin(ang/2) * t, 0, 0]) rotate([0, 90, 0]) {
-                    render() rotate_extrude(convexity = 10, $fn = facets) {
-                        translate([radius * cos(ang/2), 0, 0]) {
-                            circle(r = beam_radius, $fn = facets);
-                        }
-                    }
-                }
-                translate([radius * sin(ang/(2/3)) * t, 0, 0]) rotate([0, 90, 0]) {
-                    render() rotate_extrude(convexity = 10, $fn = facets) {
-                        translate([radius * cos(ang/(2/3)), 0, 0]) {
-                            circle(r = beam_radius, $fn = facets);
-                        }
-                    }
-                }
-            }
-        }
-        brad = radius + 2 * beam_radius + thin_mint;
-        translate([-brad, -brad, - 2 * brad]) {
-            cube([2 * brad, 2 * brad, 2 * brad]);
-        }
-    }
-}
-
-// windscreen mount to body with thread
-
-module tetra_windscreen_mount(height, radius, beam_radius) {
-    octagon_radius = (radius + 2 * beam_radius + wall) * cos(PI/8);
-    difference() {
-        cylinder(r = radius + 2 * beam_radius + windscreen_thread_depth, h = height, $fn = facets);
-        metric_thread(diameter = radius * 2 + windscreen_thread_fit, pitch = windscreen_thread_pitch,
-                length = height, angle = windscreen_thread_angle, internal = true);
-        // make outside be a octagon instead of a circle
-        rotate([0, 0, 22.5]) translate([0, 0, -thin_mint]) {
-            difference() {
-                cylinder(r = 1.5 * radius, h = height + 2 * thin_mint);
-                cylinder(r = octagon_radius, h = height + 2 * thin_mint, $fn = 8);
-            }
-        }
-    }
-    // marker for center of screen
-    translate([-(radius + wall), 0, 0]) {
-        cylinder(r = 1.0, h = height, $fn = facets);
-    }
-}
-
-module tetra_windscreen_round_mount(height, radius, wall) {
-    difference() {
-        cylinder(r = radius + wall, h = height, $fn = facets);
-        metric_thread(diameter = radius * 2 + windscreen_thread_fit, pitch = windscreen_thread_pitch,
-                length = height, angle = windscreen_thread_angle, internal = true);
-    }
-    // add better attachment points for windscreen
-    difference() {
-        union() {
-            cylinder(r = radius + 2 * wall, h = height/2, $fn = facets);
-            translate([0, 0, height/2]) {
-                cylinder(r1 = radius + 2 * wall, r2 = radius + wall, h = height/2, $fn = facets);
-            }
-        }
-        cylinder(r = radius + wall, h = height, $fn = facets);
-    }
-    // marker for center of microphone
-    translate([-(radius + 2 * wall), 0, 0]) {
-        cylinder(r = 1.0, h = height/2, $fn = facets);
-    }
-}
-
-// small tube to connect both helical windscreen mounts
-
-module tetra_windscreen_connector(beam_radius) {
-    difference() {
-        cylinder(r = beam_radius + 0.8, h = 5, $fn = facets);
-        cylinder(r = beam_radius + 2 * fit, h = 5, $fn = facets);
-    }
-}
-
-
 
 ////
 //// render all the different parts
@@ -988,41 +747,6 @@ module render_tetra_microphone_cutout(z_offset, spread) {
     }
 }
 
-// windscreen components
-
-module render_tetra_windscreen_top(z_offset) {
-    translate([0, 0, z_offset]) {
-        rotate([0, 0, 22.5]) scale([1, 1, 6/7]) {
-            tetra_windscreen_dome(box_corner_radius + beam_radius/2, beam_radius);
-        }
-        rotate([0, 180, 22.5]) {
-            tetra_windscreen(box_corner_radius + beam_radius/2, mount_corner, windscreen_height, beam_radius, 45);
-        }
-    }
-}
-
-module render_tetra_windscreen_bottom(z_offset) {
-    translate([0, 0, z_offset]) rotate([0, 0, 22.5]) {
-        tetra_windscreen(box_corner_radius + beam_radius/2, mount_corner, windscreen_height, beam_radius, 45);
-    }
-}
-
-module render_tetra_windscreen_mount(z_offset) {
-    translate([0, 0, z_offset]) {
-        tetra_windscreen_mount(windscreen_thread_height, windscreen_thread_radius, beam_radius);
-    }
-}
-
-module render_tetra_windscreen_connectors(z_offset) {
-    translate([0, 0, z_offset]) {
-        for (r = [0, 45, 90, 135, 180, -135, -90, -45]) rotate([0, 0, r + 22.5]) {
-            translate([box_corner_radius + beam_radius * 2 + 0.5, 0, 0]) {
-                tetra_windscreen_connector(beam_radius);
-            }
-        }
-    }
-}
-
 // shock mount: microphone clip on stand mount
 //