|
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | +// resolucion = 5.0; |
| 5 | +resolucion = 100.0; |
| 6 | + |
| 7 | +// bordes de la caja |
| 8 | +bordeX = 5.0; |
| 9 | +bordeY = 5.0; |
| 10 | +bordeZ = 1.0; |
| 11 | + |
| 12 | +// lados exteriores |
| 13 | +extLadoX = 53.0; |
| 14 | +extLadoY = 82.0; |
| 15 | +extLadoZ = 50.0; |
| 16 | + |
| 17 | +radioPerilla = 5.0; |
| 18 | +radioParlante = 10; |
| 19 | + |
| 20 | +radioEsferaFilete = 0; |
| 21 | + |
| 22 | +module cajita( |
| 23 | + extLadoX, |
| 24 | + extLadoY, |
| 25 | + extLadoZ, |
| 26 | + bordeX, |
| 27 | + bordeY, |
| 28 | + bordeZ |
| 29 | + ) |
| 30 | + |
| 31 | + { |
| 32 | + |
| 33 | + difference() { |
| 34 | + |
| 35 | + cube( |
| 36 | + [ |
| 37 | + extLadoX, |
| 38 | + extLadoY, |
| 39 | + extLadoZ |
| 40 | + ], |
| 41 | + center = true); |
| 42 | + |
| 43 | + cube( |
| 44 | + [ |
| 45 | + extLadoX - bordeX, |
| 46 | + extLadoY + bordeY, |
| 47 | + extLadoZ - bordeZ |
| 48 | + ], |
| 49 | + center = true); |
| 50 | + |
| 51 | + translate([15, -15, 20]) |
| 52 | + cylinder (h = 20, r=radioPerilla, center = true, $fn = resolucion); |
| 53 | + |
| 54 | + translate([-15, -15, 20]) |
| 55 | + cylinder (h = 20, r=radioPerilla, center = true, $fn = resolucion); |
| 56 | + |
| 57 | + translate([0, 20, 20]) |
| 58 | + cylinder (h = 20, r=radioParlante, center = true, $fn = resolucion); |
| 59 | + |
| 60 | + color([1.0,0.0,1.0]) |
| 61 | + translate([-extLadoX/2, -extLadoY/2, -extLadoZ/2]) |
| 62 | + sphere(r=radioEsferaFilete); |
| 63 | + |
| 64 | + color([1.0,0.0,1.0]) |
| 65 | + translate([-extLadoX/2, +extLadoY/2, -extLadoZ/2]) |
| 66 | + sphere(r=radioEsferaFilete); |
| 67 | + |
| 68 | + color([1.0,0.0,1.0]) |
| 69 | + translate([+extLadoX/2, -extLadoY/2, -extLadoZ/2]) |
| 70 | + sphere(r=radioEsferaFilete); |
| 71 | + |
| 72 | + color([1.0,0.0,1.0]) |
| 73 | + translate([+extLadoX/2, +extLadoY/2, -extLadoZ/2]) |
| 74 | + sphere(r=radioEsferaFilete); |
| 75 | + |
| 76 | + color([1.0,0.0,1.0]) |
| 77 | + translate([-extLadoX/2, -extLadoY/2, +extLadoZ/2]) |
| 78 | + sphere(r=radioEsferaFilete); |
| 79 | + |
| 80 | + color([1.0,0.0,1.0]) |
| 81 | + translate([-extLadoX/2, +extLadoY/2, +extLadoZ/2]) |
| 82 | + sphere(r=radioEsferaFilete); |
| 83 | + |
| 84 | + color([1.0,0.0,1.0]) |
| 85 | + translate([+extLadoX/2, -extLadoY/2, +extLadoZ/2]) |
| 86 | + sphere(r=radioEsferaFilete); |
| 87 | + |
| 88 | + color([1.0,0.0,1.0]) |
| 89 | + translate([+extLadoX/2, +extLadoY/2, +extLadoZ/2]) |
| 90 | + sphere(r=radioEsferaFilete); |
| 91 | + |
| 92 | + } |
| 93 | + |
| 94 | + color([1.0,0.0,1.0]) |
| 95 | + rotate([0, 0, 180]) |
| 96 | + translate([-25, 35, 25]) |
| 97 | + linear_extrude(2) |
| 98 | + text("sinte555", size= 3, halign="left",valign = "baseline"); |
| 99 | + |
| 100 | + color([1.0,0.0,1.0]) |
| 101 | + rotate([0, 0, 180]) |
| 102 | + translate([-25, 30, 25]) |
| 103 | + linear_extrude(2) |
| 104 | + text("disenoUDP", size= 3, halign="left",valign = "baseline"); |
| 105 | + |
| 106 | + color([1.0,0.0,1.0]) |
| 107 | + rotate([0, 0, 180]) |
| 108 | + translate([-25, 25, 25]) |
| 109 | + linear_extrude(2) |
| 110 | + text("v0.0.1", size= 3, halign="left",valign = "baseline"); |
| 111 | + |
| 112 | +}; |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | +cajita( |
| 117 | + extLadoX, |
| 118 | + extLadoY, |
| 119 | + extLadoZ, |
| 120 | + bordeX, |
| 121 | + bordeY, |
| 122 | + bordeZ); |
| 123 | + |
| 124 | + |
0 commit comments